Wirepas SDK
board.h File Reference

Detailed Description

Board definition for a board composed of a Wirepas Evaluation Kit mother board and a silabs brd4210a 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   GPIO_PORTA
 
#define BOARD_USART_TX_PIN   8
 
#define BOARD_USART_RX_PORT   GPIO_PORTA
 
#define BOARD_USART_RX_PIN   9
 
#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_VCOM_ENABLE   5
 
#define BOARD_GPIO_ID_SPI_CS   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
 
#define BOARD_SPI   USART0
 
#define BOARD_SPIROUTE   GPIO->USARTROUTE[0]
 
#define BOARD_SPI_EXTFLASH_MOSI_PORT   GPIO_PORTC
 
#define BOARD_SPI_EXTFLASH_MISO_PORT   GPIO_PORTC
 
#define BOARD_SPI_EXTFLASH_SCKL_PORT   GPIO_PORTC
 
#define BOARD_SPI_EXTFLASH_MOSI_PIN   1
 
#define BOARD_SPI_EXTFLASH_MISO_PIN   2
 
#define BOARD_SPI_EXTFLASH_SCKL_PIN   3
 

Macro Definition Documentation

◆ BOARD_BUTTON_ACTIVE_LOW

#define BOARD_BUTTON_ACTIVE_LOW   true

Definition at line 51 of file board.h.

◆ BOARD_BUTTON_ID_LIST

#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1}

Definition at line 48 of file board.h.

◆ BOARD_BUTTON_INTERNAL_PULL

#define BOARD_BUTTON_INTERNAL_PULL   false

Definition at line 54 of file board.h.

◆ BOARD_GPIO_ID_BUTTON0

#define BOARD_GPIO_ID_BUTTON0   2

Definition at line 35 of file board.h.

◆ BOARD_GPIO_ID_BUTTON1

#define BOARD_GPIO_ID_BUTTON1   3

Definition at line 36 of file board.h.

◆ BOARD_GPIO_ID_LED0

#define BOARD_GPIO_ID_LED0   0

Definition at line 33 of file board.h.

◆ BOARD_GPIO_ID_LED1

#define BOARD_GPIO_ID_LED1   1

Definition at line 34 of file board.h.

◆ BOARD_GPIO_ID_SPI_CS

#define BOARD_GPIO_ID_SPI_CS   6

Definition at line 39 of file board.h.

◆ BOARD_GPIO_ID_USART_WAKEUP

#define BOARD_GPIO_ID_USART_WAKEUP   4

Definition at line 37 of file board.h.

◆ BOARD_GPIO_ID_VCOM_ENABLE

#define BOARD_GPIO_ID_VCOM_ENABLE   5

Definition at line 38 of file board.h.

◆ BOARD_GPIO_PIN_LIST

#define BOARD_GPIO_PIN_LIST
Value:
{{GPIO_PORTB, 2}, /* PB02 */\
{GPIO_PORTD, 3}, /* PD03 */\
{GPIO_PORTB, 1}, /* PB01 */\
{GPIO_PORTB, 3}, /* PB03 */\
{GPIO_PORTA, 9}, /* PA09. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
{GPIO_PORTB, 0}, /* PB00. usart vcom pin */\
{GPIO_PORTC, 4}} /* PC04 SPI CS */

Definition at line 24 of file board.h.

◆ BOARD_LED_ACTIVE_LOW

#define BOARD_LED_ACTIVE_LOW   false

Definition at line 45 of file board.h.

◆ BOARD_LED_ID_LIST

#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1}

Definition at line 42 of file board.h.

◆ BOARD_SPI

#define BOARD_SPI   USART0

Definition at line 58 of file board.h.

◆ BOARD_SPI_EXTFLASH_MISO_PIN

#define BOARD_SPI_EXTFLASH_MISO_PIN   2

Definition at line 65 of file board.h.

◆ BOARD_SPI_EXTFLASH_MISO_PORT

#define BOARD_SPI_EXTFLASH_MISO_PORT   GPIO_PORTC

Definition at line 62 of file board.h.

◆ BOARD_SPI_EXTFLASH_MOSI_PIN

#define BOARD_SPI_EXTFLASH_MOSI_PIN   1

Definition at line 64 of file board.h.

◆ BOARD_SPI_EXTFLASH_MOSI_PORT

#define BOARD_SPI_EXTFLASH_MOSI_PORT   GPIO_PORTC

Definition at line 61 of file board.h.

◆ BOARD_SPI_EXTFLASH_SCKL_PIN

#define BOARD_SPI_EXTFLASH_SCKL_PIN   3

Definition at line 66 of file board.h.

◆ BOARD_SPI_EXTFLASH_SCKL_PORT

#define BOARD_SPI_EXTFLASH_SCKL_PORT   GPIO_PORTC

Definition at line 63 of file board.h.

◆ BOARD_SPIROUTE

#define BOARD_SPIROUTE   GPIO->USARTROUTE[0]

Definition at line 59 of file board.h.

◆ BOARD_USART_ID

#define BOARD_USART_ID   0

Definition at line 17 of file board.h.

◆ BOARD_USART_RX_PIN

#define BOARD_USART_RX_PIN   9

Definition at line 21 of file board.h.

◆ BOARD_USART_RX_PORT

#define BOARD_USART_RX_PORT   GPIO_PORTA

Definition at line 20 of file board.h.

◆ BOARD_USART_TX_PIN

#define BOARD_USART_TX_PIN   8

Definition at line 19 of file board.h.

◆ BOARD_USART_TX_PORT

#define BOARD_USART_TX_PORT   GPIO_PORTA

Definition at line 18 of file board.h.