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_BRD2703A_BOARD_H_
14#define BOARD_SILABS_BRD2703A_BOARD_H_
15
16// VCOM port only supports 115200 baudrate
17// This speed will be used independently of UART_BAUDRATE flag value
18#define BOARD_USART_FORCE_BAUDRATE 115200
19
20// Serial port
21#define BOARD_USART_ID 0
22#define BOARD_USART_TX_PORT GPIO_PORTA
23#define BOARD_USART_TX_PIN 5
24#define BOARD_USART_RX_PORT GPIO_PORTA
25#define BOARD_USART_RX_PIN 6
26
27// List of GPIO pins
28#define BOARD_GPIO_PIN_LIST {{GPIO_PORTA, 4}, /* PA04 */\
29 {GPIO_PORTA, 7}, /* PA07 */\
30 {GPIO_PORTB, 2}, /* PB02 */\
31 {GPIO_PORTB, 3}, /* PB03 */\
32 {GPIO_PORTA, 6}} /* PA06. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
33
34// User friendly name for GPIOs (IDs mapped to the BOARD_GPIO_PIN_LIST table)
35#define BOARD_GPIO_ID_LED0 0 // mapped to pin PA04
36#define BOARD_GPIO_ID_LED1 1 // mapped to pin PA07
37#define BOARD_GPIO_ID_BUTTON0 2 // mapped to pin PB02
38#define BOARD_GPIO_ID_BUTTON1 3 // mapped to pin PB03
39#define BOARD_GPIO_ID_USART_WAKEUP 4 // mapped to pin PA06
40
41// List of LED IDs
42#define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1}
43
44// LED GPIO polarity
45#define BOARD_LED_ACTIVE_LOW false
46
47// List of button IDs
48#define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1}
49
50// Button GPIO polarity
51#define BOARD_BUTTON_ACTIVE_LOW true
52
53// Button GPIO internal pull up/down
54#define BOARD_BUTTON_INTERNAL_PULL false
55
56#endif // BOARD_SILABS_BRD2703A_BOARD_H_