Wirepas SDK
board.h File Reference

Detailed Description

Board definition for a board composed of a Silabs starter kit and a brd4254a radio module

Definition in file board.h.

Go to the source code of this file.

Macros

#define BOARD_USART_ID   0
 
#define BOARD_USART_TX_PORT   GPIOA
 
#define BOARD_USART_TX_PIN   0
 
#define BOARD_USART_RX_PORT   GPIOA
 
#define BOARD_USART_RX_PIN   1
 
#define BOARD_USART_ROUTELOC_RXLOC   USART_ROUTELOC0_RXLOC_LOC0
 
#define BOARD_USART_ROUTELOC_TXLOC   USART_ROUTELOC0_TXLOC_LOC0
 
#define BOARD_GPIO_PIN_LIST
 
#define BOARD_GPIO_ID_LED0   0
 
#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
 
#define BOARD_GPIO_ID_UART_IRQ   5
 
#define BOARD_GPIO_ID_VCOM_ENABLE   6
 
#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1}
 
#define BOARD_LED_ACTIVE_LOW   false
 
#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1}
 
#define BOARD_BUTTON_ACTIVE_LOW   true
 
#define BOARD_BUTTON_INTERNAL_PULL   false
 

Macro Definition Documentation

◆ BOARD_BUTTON_ACTIVE_LOW

#define BOARD_BUTTON_ACTIVE_LOW   true

Definition at line 63 of file board.h.

◆ BOARD_BUTTON_ID_LIST

#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1}

Definition at line 60 of file board.h.

◆ BOARD_BUTTON_INTERNAL_PULL

#define BOARD_BUTTON_INTERNAL_PULL   false

Definition at line 66 of file board.h.

◆ BOARD_GPIO_ID_BUTTON0

#define BOARD_GPIO_ID_BUTTON0   2

Definition at line 47 of file board.h.

◆ BOARD_GPIO_ID_BUTTON1

#define BOARD_GPIO_ID_BUTTON1   3

Definition at line 48 of file board.h.

◆ BOARD_GPIO_ID_LED0

#define BOARD_GPIO_ID_LED0   0

Definition at line 45 of file board.h.

◆ BOARD_GPIO_ID_LED1

#define BOARD_GPIO_ID_LED1   1

Definition at line 46 of file board.h.

◆ BOARD_GPIO_ID_UART_IRQ

#define BOARD_GPIO_ID_UART_IRQ   5

Definition at line 50 of file board.h.

◆ BOARD_GPIO_ID_USART_WAKEUP

#define BOARD_GPIO_ID_USART_WAKEUP   4

Definition at line 49 of file board.h.

◆ BOARD_GPIO_ID_VCOM_ENABLE

#define BOARD_GPIO_ID_VCOM_ENABLE   6

Definition at line 51 of file board.h.

◆ BOARD_GPIO_PIN_LIST

#define BOARD_GPIO_PIN_LIST
Value:
{{GPIOF, 4}, /* PF04 */\
{GPIOF, 5}, /* PF05 */\
{GPIOF, 6}, /* PF06 */\
{GPIOF, 7}, /* PF07 */\
{GPIOA, 1}, /* PA01. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
{GPIOD, 8}, /* PD08. required by the dual_mcu app (indication signal) */\
{GPIOA, 5}} /* PA05. usart vcom pin */

Definition at line 36 of file board.h.

◆ BOARD_LED_ACTIVE_LOW

#define BOARD_LED_ACTIVE_LOW   false

Definition at line 57 of file board.h.

◆ BOARD_LED_ID_LIST

#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1}

Definition at line 54 of file board.h.

◆ BOARD_USART_ID

#define BOARD_USART_ID   0

Definition at line 21 of file board.h.

◆ BOARD_USART_ROUTELOC_RXLOC

#define BOARD_USART_ROUTELOC_RXLOC   USART_ROUTELOC0_RXLOC_LOC0

Definition at line 29 of file board.h.

◆ BOARD_USART_ROUTELOC_TXLOC

#define BOARD_USART_ROUTELOC_TXLOC   USART_ROUTELOC0_TXLOC_LOC0

Definition at line 30 of file board.h.

◆ BOARD_USART_RX_PIN

#define BOARD_USART_RX_PIN   1

Definition at line 25 of file board.h.

◆ BOARD_USART_RX_PORT

#define BOARD_USART_RX_PORT   GPIOA

Definition at line 24 of file board.h.

◆ BOARD_USART_TX_PIN

#define BOARD_USART_TX_PIN   0

Definition at line 23 of file board.h.

◆ BOARD_USART_TX_PORT

#define BOARD_USART_TX_PORT   GPIOA

Definition at line 22 of file board.h.