Wirepas SDK
board.h File Reference

Detailed Description

Board definition for the Silabs Thunderboard Sense 2

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_FORCE_BAUDRATE   115200
 
#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_LED_R   0
 
#define BOARD_GPIO_ID_LED_G   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 USE_I2C1
 
#define BOARD_I2C_GPIO_PORT   GPIOC
 
#define BOARD_I2C_SDA_PIN   4
 
#define BOARD_I2C_SCL_PIN   5
 
#define BOARD_I2C_ROUTELOC_SDALOC   I2C_ROUTELOC0_SDALOC_LOC17
 
#define BOARD_I2C_ROUTELOC_SCLLOC   I2C_ROUTELOC0_SCLLOC_LOC17
 
#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED_R, BOARD_GPIO_ID_LED_G}
 
#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 91 of file board.h.

◆ BOARD_BUTTON_ID_LIST

#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1}

Definition at line 88 of file board.h.

◆ BOARD_BUTTON_INTERNAL_PULL

#define BOARD_BUTTON_INTERNAL_PULL   false

Definition at line 94 of file board.h.

◆ BOARD_GPIO_ID_BUTTON0

#define BOARD_GPIO_ID_BUTTON0   2

Definition at line 68 of file board.h.

◆ BOARD_GPIO_ID_BUTTON1

#define BOARD_GPIO_ID_BUTTON1   3

Definition at line 69 of file board.h.

◆ BOARD_GPIO_ID_LED_G

#define BOARD_GPIO_ID_LED_G   1

Definition at line 67 of file board.h.

◆ BOARD_GPIO_ID_LED_R

#define BOARD_GPIO_ID_LED_R   0

Definition at line 66 of file board.h.

◆ BOARD_GPIO_ID_UART_IRQ

#define BOARD_GPIO_ID_UART_IRQ   5

Definition at line 71 of file board.h.

◆ BOARD_GPIO_ID_USART_WAKEUP

#define BOARD_GPIO_ID_USART_WAKEUP   4

Definition at line 70 of file board.h.

◆ BOARD_GPIO_PIN_LIST

#define BOARD_GPIO_PIN_LIST
Value:
{{GPIOD, 8}, /* PD08 */\
{GPIOD, 9}, /* PD09 */\
{GPIOD, 14}, /* PD14 */\
{GPIOD, 15}, /* PD15 */\
{GPIOA, 1}, /* PA01. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
{GPIOF, 6}} /* PF06. required by the dual_mcu app (indication signal) */

Definition at line 57 of file board.h.

◆ BOARD_I2C_GPIO_PORT

#define BOARD_I2C_GPIO_PORT   GPIOC

Definition at line 75 of file board.h.

◆ BOARD_I2C_ROUTELOC_SCLLOC

#define BOARD_I2C_ROUTELOC_SCLLOC   I2C_ROUTELOC0_SCLLOC_LOC17

Definition at line 79 of file board.h.

◆ BOARD_I2C_ROUTELOC_SDALOC

#define BOARD_I2C_ROUTELOC_SDALOC   I2C_ROUTELOC0_SDALOC_LOC17

Definition at line 78 of file board.h.

◆ BOARD_I2C_SCL_PIN

#define BOARD_I2C_SCL_PIN   5

Definition at line 77 of file board.h.

◆ BOARD_I2C_SDA_PIN

#define BOARD_I2C_SDA_PIN   4

Definition at line 76 of file board.h.

◆ BOARD_LED_ACTIVE_LOW

#define BOARD_LED_ACTIVE_LOW   false

Definition at line 85 of file board.h.

◆ BOARD_LED_ID_LIST

#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED_R, BOARD_GPIO_ID_LED_G}

Definition at line 82 of file board.h.

◆ BOARD_USART_FORCE_BAUDRATE

#define BOARD_USART_FORCE_BAUDRATE   115200

Definition at line 49 of file board.h.

◆ BOARD_USART_ID

#define BOARD_USART_ID   0

Definition at line 41 of file board.h.

◆ BOARD_USART_ROUTELOC_RXLOC

#define BOARD_USART_ROUTELOC_RXLOC   USART_ROUTELOC0_RXLOC_LOC0

Definition at line 53 of file board.h.

◆ BOARD_USART_ROUTELOC_TXLOC

#define BOARD_USART_ROUTELOC_TXLOC   USART_ROUTELOC0_TXLOC_LOC0

Definition at line 54 of file board.h.

◆ BOARD_USART_RX_PIN

#define BOARD_USART_RX_PIN   1

Definition at line 45 of file board.h.

◆ BOARD_USART_RX_PORT

#define BOARD_USART_RX_PORT   GPIOA

Definition at line 44 of file board.h.

◆ BOARD_USART_TX_PIN

#define BOARD_USART_TX_PIN   0

Definition at line 43 of file board.h.

◆ BOARD_USART_TX_PORT

#define BOARD_USART_TX_PORT   GPIOA

Definition at line 42 of file board.h.

◆ USE_I2C1

#define USE_I2C1

Definition at line 74 of file board.h.