Wirepas SDK
board.h
Go to the documentation of this file.
1/* Copyright 2023 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6
13#ifndef BOARD_SILABS_BRD4187C_BOARD_H_
14#define BOARD_SILABS_BRD4187C_BOARD_H_
15
16// Serial port
17#define BOARD_USART_ID 0
18#define BOARD_USART_TX_PORT GPIO_PORTA
19#define BOARD_USART_TX_PIN 8
20#define BOARD_USART_RX_PORT GPIO_PORTA
21#define BOARD_USART_RX_PIN 9
22
23// List of GPIO pins
24#define BOARD_GPIO_PIN_LIST {{GPIO_PORTB, 2}, /* PB02 EZR_LED0 */ \
25 {GPIO_PORTB, 4}, /* PB04 EZR_LED1*/ \
26 {GPIO_PORTA, 9}, /* PA09. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */ \
27 {GPIO_PORTB, 0}} /* PB00. usart vcom pin */
28
29// User friendly name for GPIOs (IDs mapped to the BOARD_GPIO_PIN_LIST table)
30#define BOARD_GPIO_ID_LED0 0 // mapped to pin PB02
31#define BOARD_GPIO_ID_LED1 1 // mapped to pin PB04
32#define BOARD_GPIO_ID_USART_WAKEUP 2 // mapped to pin PA09
33#define BOARD_GPIO_ID_VCOM_ENABLE 3 // mapped to pin PB00
34
35// List of LED IDs
36#define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1}
37
38// Active high polarity for LEDs
39#define BOARD_LED_ACTIVE_LOW false
40
41#endif /* BOARD_SILABS_BRD4187C_BOARD_H_ */