OpenBIC
OpenSource Bridge-IC
expansion_board.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef EXPANSION_BOARD_H
18#define EXPANSION_BOARD_H
19
20#include "hal_gpio.h"
21#include "plat_gpio.h"
22
28};
29
30#define VERNAL_FALLS_BOARD_TYPE 0x07 // VF return board_type instead of board_id
31
33void init_sys_board_id(uint8_t board_id);
34uint8_t get_board_id();
35
36#endif
uint8_t get_board_id()
Definition: expansion_board.c:57
EXPANSION_BOARD_ID
Definition: expansion_board.h:23
@ VERNAL_FALLS
Definition: expansion_board.h:26
@ RAINBOW_FALLS
Definition: expansion_board.h:24
@ UNKNOWN_BOARD
Definition: expansion_board.h:27
@ WAIMANO_FALLS
Definition: expansion_board.h:25
void init_sys_board_id(uint8_t board_id)
Definition: expansion_board.c:27
void init_platform_config()
Definition: expansion_board.c:43