Wirepas SDK
board.h
Go to the documentation of this file.
1 /* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
14 #ifndef _BOARD_NRF52832_MDK_V2_BOARD_H_
15 #define _BOARD_NRF52832_MDK_V2_BOARD_H_
16 
17 // Serial port pins
18 #define BOARD_USART_TX_PIN 20
19 #define BOARD_USART_RX_PIN 19
20 
21 // List of GPIO pins
22 #define BOARD_GPIO_PIN_LIST {23, /* P0.23 */\
23  22, /* P0.22 */\
24  24, /* P0.24 */\
25  19} /* P0.19. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */
26 
27 // User friendly name for GPIOs (IDs mapped to the BOARD_GPIO_PIN_LIST table)
28 #define BOARD_GPIO_ID_LED_R 0 // mapped to pin P0.23
29 #define BOARD_GPIO_ID_LED_G 1 // mapped to pin P0.22
30 #define BOARD_GPIO_ID_LED_B 2 // mapped to pin P0.24
31 #define BOARD_GPIO_ID_USART_WAKEUP 3 // mapped to pin P0.19
32 
33 // List of LED IDs
34 #define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED_R, BOARD_GPIO_ID_LED_G, BOARD_GPIO_ID_LED_B}
35 
36 // Active low polarity for LEDs
37 #define BOARD_LED_ACTIVE_LOW true
38 
39 // The board supports DCDC (#define BOARD_SUPPORT_DCDC)
40 // Since SDK v1.2 (bootloader > v7) this option has been move to
41 // board/<board_name>/config.mk.
42 #ifdef BOARD_SUPPORT_DCDC
43 #error This option has been moved to board/<board_name>/config.mk
44 #endif
45 
46 #endif /* _BOARD_NRF52832_MDK_V2_BOARD_H_ */