|
Wirepas SDK
|
|
Go to the documentation of this file.
13 #ifndef BOARD_TBSENSE2_BOARD_H_
14 #define BOARD_TBSENSE2_BOARD_H_
20 #define BOARD_USART_ID 1
21 #define BOARD_USART_TX_PORT GPIOF
22 #define BOARD_USART_TX_PIN 3
23 #define BOARD_USART_RX_PORT GPIOF
24 #define BOARD_USART_RX_PIN 4
28 #define BOARD_USART_ROUTELOC_RXLOC USART_ROUTELOC0_RXLOC_LOC27
29 #define BOARD_USART_ROUTELOC_TXLOC USART_ROUTELOC0_TXLOC_LOC27
32 #define BOARD_GPIO_PIN_LIST {{GPIOD, 8}, \
41 #define BOARD_USART_ID 0
42 #define BOARD_USART_TX_PORT GPIOA
43 #define BOARD_USART_TX_PIN 0
44 #define BOARD_USART_RX_PORT GPIOA
45 #define BOARD_USART_RX_PIN 1
49 #define BOARD_USART_FORCE_BAUDRATE 115200
53 #define BOARD_USART_ROUTELOC_RXLOC USART_ROUTELOC0_RXLOC_LOC0
54 #define BOARD_USART_ROUTELOC_TXLOC USART_ROUTELOC0_TXLOC_LOC0
57 #define BOARD_GPIO_PIN_LIST {{GPIOD, 8}, \
66 #define BOARD_GPIO_ID_LED_R 0 // mapped to pin PD08
67 #define BOARD_GPIO_ID_LED_G 1 // mapped to pin PD09
68 #define BOARD_GPIO_ID_BUTTON0 2 // mapped to pin PD14
69 #define BOARD_GPIO_ID_BUTTON1 3 // mapped to pin PD15
70 #define BOARD_GPIO_ID_USART_WAKEUP 4 // mapped to BOARD_USART_RX_PIN
71 #define BOARD_GPIO_ID_UART_IRQ 5 // mapped to pin PF06
75 #define BOARD_I2C_GPIO_PORT GPIOC
76 #define BOARD_I2C_SDA_PIN 4
77 #define BOARD_I2C_SCL_PIN 5
78 #define BOARD_I2C_ROUTELOC_SDALOC I2C_ROUTELOC0_SDALOC_LOC17
79 #define BOARD_I2C_ROUTELOC_SCLLOC I2C_ROUTELOC0_SCLLOC_LOC17
82 #define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED_R, BOARD_GPIO_ID_LED_G}
85 #define BOARD_LED_ACTIVE_LOW false
88 #define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1}
91 #define BOARD_BUTTON_ACTIVE_LOW true
94 #define BOARD_BUTTON_INTERNAL_PULL false