Wirepas SDK
|
Template to be used for EFR32 board definitions
Definition in file board.h.
Go to the source code of this file.
Macros | |
#define | BOARD_USART_ID 0 |
USART ID. More... | |
#define | BOARD_USART_ROUTELOC_RXLOC USART_ROUTELOC0_RXLOC_LOC0 |
RX routeloc definition. More... | |
#define | BOARD_USART_ROUTELOC_TXLOC USART_ROUTELOC0_TXLOC_LOC0 |
TX routeloc definition. More... | |
#define | BOARD_USART_TX_PORT GPIOA |
Transmission pin port. More... | |
#define | BOARD_USART_TX_PIN 0 |
Transmission pin number. More... | |
#define | BOARD_USART_RX_PORT GPIOA |
Reception pin port. More... | |
#define | BOARD_USART_RX_PIN 1 |
Reception pin number. More... | |
#define | BOARD_GPIO_PIN_LIST |
GPIO definitions. More... | |
#define | BOARD_GPIO_ID_LED0 0 |
GPIO IDs. More... | |
#define | BOARD_GPIO_ID_LED1 1 |
#define | BOARD_GPIO_ID_BUTTON0 2 |
#define | BOARD_GPIO_ID_BUTTON1 3 |
#define | BOARD_GPIO_ID_USART_WAKEUP 4 |
pin for dual mcu app, usart wakeup More... | |
#define | BOARD_GPIO_ID_UART_IRQ 5 |
Interrupt pin for dual mcu app, unread indication. More... | |
#define | BOARD_LED_PIN_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1} |
LED definitions. More... | |
#define | BOARD_LED_ACTIVE_LOW false |
LED GPIO polarity. More... | |
#define | BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1} |
Button definitions. More... | |
#define | BOARD_BUTTON_ACTIVE_LOW true |
Button GPIO polarity. More... | |
#define | BOARD_BUTTON_INTERNAL_PULL true |
Button GPIO internal pull up/down. More... | |
#define BOARD_BUTTON_ACTIVE_LOW true |
Button GPIO polarity.
If a button press pulls the GPIO pin low, this setting is true. This is the case for many EFR32 boards, such as the Thunderboard Sense 2 and the BRD4001 Evaluation Board. Otherwise, if a button press pulls the GPIO pin high, this setting should be set to false.
#define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1} |
Button definitions.
If board contains buttons, The button IDs list is defined here. The button IDs are mapped to GPIO IDs. If not defined, a dummy button driver is compiled, so that applications can use the button driver unconditionally.
#define BOARD_BUTTON_INTERNAL_PULL true |
Button GPIO internal pull up/down.
Some buttons don't have any pull-up or pull-down resistor installed on the board. They need it to be setup in software. Set BOARD_BUTTON_INTERNAL_PULL to true to enable internal pull-up(down). Pull-up(down) is enabled when BOARD_BUTTON_ACTIVE_LOW is true(false).
#define BOARD_GPIO_ID_LED0 0 |
#define BOARD_GPIO_ID_UART_IRQ 5 |
#define BOARD_GPIO_ID_USART_WAKEUP 4 |
#define BOARD_GPIO_PIN_LIST |
GPIO definitions.
If board needs GPIOs, they are defined here. If not defined, a dummy GPIO driver is compiled, so that applications can use the GPIO driver unconditionally.
For Silabs EFR32 family, the list contains GPIO port/pin number pairs.
#define BOARD_LED_ACTIVE_LOW false |
#define BOARD_LED_PIN_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1} |
LED definitions.
If board contains LEDs, The LED IDs list is defined here. The LED IDs are mapped to GPIO IDs. If not defined, a dummy LED driver is compiled, so that applications can use the LED driver unconditionally.
#define BOARD_USART_ID 0 |
#define BOARD_USART_ROUTELOC_RXLOC USART_ROUTELOC0_RXLOC_LOC0 |
#define BOARD_USART_ROUTELOC_TXLOC USART_ROUTELOC0_TXLOC_LOC0 |