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_GPIO_PORT   GPIOA
 
#define BOARD_USART_TX_PIN   0
 
#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_UART_INT_PIN   6
 
#define BOARD_UART_INT_PORT   GPIOF
 
#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_PIN_LIST   {{GPIOD, 8}, {GPIOD, 9}}
 
#define BOARD_LED_ACTIVE_LOW   false
 
#define BOARD_BUTTON_PIN_LIST   {{12, GPIOD, 14}, {14, GPIOD, 15}}
 
#define BOARD_BUTTON_ACTIVE_LOW   true
 
#define BOARD_BUTTON_INTERNAL_PULL   false
 
#define BOARD_BUTTON_USE_EVEN_INT   true
 

Macro Definition Documentation

◆ BOARD_BUTTON_ACTIVE_LOW

#define BOARD_BUTTON_ACTIVE_LOW   true

Definition at line 65 of file board.h.

◆ BOARD_BUTTON_INTERNAL_PULL

#define BOARD_BUTTON_INTERNAL_PULL   false

Definition at line 68 of file board.h.

◆ BOARD_BUTTON_PIN_LIST

#define BOARD_BUTTON_PIN_LIST   {{12, GPIOD, 14}, {14, GPIOD, 15}}

Definition at line 62 of file board.h.

◆ BOARD_BUTTON_USE_EVEN_INT

#define BOARD_BUTTON_USE_EVEN_INT   true

Definition at line 71 of file board.h.

◆ BOARD_I2C_GPIO_PORT

#define BOARD_I2C_GPIO_PORT   GPIOC

Definition at line 49 of file board.h.

◆ BOARD_I2C_ROUTELOC_SCLLOC

#define BOARD_I2C_ROUTELOC_SCLLOC   I2C_ROUTELOC0_SCLLOC_LOC17

Definition at line 53 of file board.h.

◆ BOARD_I2C_ROUTELOC_SDALOC

#define BOARD_I2C_ROUTELOC_SDALOC   I2C_ROUTELOC0_SDALOC_LOC17

Definition at line 52 of file board.h.

◆ BOARD_I2C_SCL_PIN

#define BOARD_I2C_SCL_PIN   5

Definition at line 51 of file board.h.

◆ BOARD_I2C_SDA_PIN

#define BOARD_I2C_SDA_PIN   4

Definition at line 50 of file board.h.

◆ BOARD_LED_ACTIVE_LOW

#define BOARD_LED_ACTIVE_LOW   false

Definition at line 59 of file board.h.

◆ BOARD_LED_PIN_LIST

#define BOARD_LED_PIN_LIST   {{GPIOD, 8}, {GPIOD, 9}}

Definition at line 56 of file board.h.

◆ BOARD_UART_INT_PIN

#define BOARD_UART_INT_PIN   6

Definition at line 44 of file board.h.

◆ BOARD_UART_INT_PORT

#define BOARD_UART_INT_PORT   GPIOF

Definition at line 45 of file board.h.

◆ BOARD_USART_FORCE_BAUDRATE

#define BOARD_USART_FORCE_BAUDRATE   115200

Definition at line 35 of file board.h.

◆ BOARD_USART_GPIO_PORT

#define BOARD_USART_GPIO_PORT   GPIOA

Definition at line 29 of file board.h.

◆ BOARD_USART_ID

#define BOARD_USART_ID   0

Definition at line 28 of file board.h.

◆ BOARD_USART_ROUTELOC_RXLOC

#define BOARD_USART_ROUTELOC_RXLOC   USART_ROUTELOC0_RXLOC_LOC0

Definition at line 39 of file board.h.

◆ BOARD_USART_ROUTELOC_TXLOC

#define BOARD_USART_ROUTELOC_TXLOC   USART_ROUTELOC0_TXLOC_LOC0

Definition at line 40 of file board.h.

◆ BOARD_USART_RX_PIN

#define BOARD_USART_RX_PIN   1

Definition at line 31 of file board.h.

◆ BOARD_USART_TX_PIN

#define BOARD_USART_TX_PIN   0

Definition at line 30 of file board.h.

◆ USE_I2C1

#define USE_I2C1

Definition at line 48 of file board.h.