Wirepas SDK
board.h
Go to the documentation of this file.
1 /* Copyright 2019 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
13 #ifndef BOARD_UBLOX_B204_H_
14 #define BOARD_UBLOX_B204_H_
15 
16 // Serial port pins
17 #define BOARD_USART_TX_PIN 6
18 #define BOARD_USART_RX_PIN 5
19 #define BOARD_USART_CTS_PIN 7 /* For USE_USART_HW_FLOW_CONTROL */
20 #define BOARD_USART_RTS_PIN 31 /* For USE_USART_HW_FLOW_CONTROL */
21 
22 /* List of GPIO pins
23 LED B204 / nrf52832 pin
24 GREEN: GPIO_7 / P0.16
25 RED: GPIO_1 / P0.08
26 BLUE: GPIO_8 / P0.18
27 */
28 #define BOARD_GPIO_PIN_LIST {16, /* P0.16 */\
29  8, /* P0.08 */\
30  18, /* P0.18 */\
31  5} /* P0.05. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */
32 
33 // User friendly name for GPIOs (IDs mapped to the BOARD_GPIO_PIN_LIST table)
34 #define BOARD_GPIO_ID_LED_G 0 // mapped to pin P0.16
35 #define BOARD_GPIO_ID_LED_R 1 // mapped to pin P0.08
36 #define BOARD_GPIO_ID_LED_B 2 // mapped to pin P0.18
37 #define BOARD_GPIO_ID_USART_WAKEUP 3 // mapped to pin P0.05
38 
39 // List of LED IDs mapped to GPIO IDs
40 #define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED_G, BOARD_GPIO_ID_LED_R, BOARD_GPIO_ID_LED_B}
41 
42 // The board supports DCDC (#define BOARD_SUPPORT_DCDC)
43 // Since SDK v1.2 (bootloader > v7) this option has been move to
44 // board/<board_name>/config.mk. Set board_hw_dcdc to yes to enable DCDC.
45 #ifdef BOARD_SUPPORT_DCDC
46 #error This option has been moved to board/<board_name>/config.mk
47 #endif
48 
49 #endif /* BOARD_UBLOX_B204_H_ */