Wirepas SDK
board.h
Go to the documentation of this file.
1 /* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
13 #ifndef _BOARD_NRF52_TEMPLATE_BOARD_H_
14 #define _BOARD_NRF52_TEMPLATE_BOARD_H_
15 
16 // Serial port pins
23 #define BOARD_USART_TX_PIN 6
24 
27 #define BOARD_USART_RX_PIN 8
28 
31 #define BOARD_USART_CTS_PIN 7
32 
35 #define BOARD_USART_RTS_PIN 5
36 
49 #define BOARD_GPIO_PIN_LIST {17, /* P0.17 */\
50  18, /* P0.18 */\
51  19, /* P0.19 */\
52  20, /* P0.20 */\
53  13, /* P0.13 */\
54  14, /* P0.14 */\
55  15, /* P0.15 */\
56  16, /* P0.16 */\
57  8, /* P0.08. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
58  11} /* P0.11. required by the dual_mcu app (indication signal) */
59 
66 #define BOARD_GPIO_ID_LED0 0 // mapped to pin P0.17
67 #define BOARD_GPIO_ID_LED1 1 // mapped to pin P0.18
68 #define BOARD_GPIO_ID_LED2 2 // mapped to pin P0.19
69 #define BOARD_GPIO_ID_LED3 3 // mapped to pin P0.20
70 #define BOARD_GPIO_ID_BUTTON0 4 // mapped to pin P0.13
71 #define BOARD_GPIO_ID_BUTTON1 5 // mapped to pin P0.14
72 #define BOARD_GPIO_ID_BUTTON2 6 // mapped to pin P0.15
73 #define BOARD_GPIO_ID_BUTTON3 7 // mapped to pin P0.16
74 #define BOARD_GPIO_ID_USART_WAKEUP 8 // mapped to P0.08
75 #define BOARD_GPIO_ID_UART_IRQ 9 // mapped to P0.11
76 
86 #define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2, BOARD_GPIO_ID_LED3}
87 
96 #define BOARD_LED_ACTIVE_LOW true
97 
108 #define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1, BOARD_GPIO_ID_BUTTON2, BOARD_GPIO_ID_BUTTON3}
109 
117 #define BOARD_BUTTON_ACTIVE_LOW true
118 
127 #define BOARD_BUTTON_INTERNAL_PULL true
128 
129 #endif /* _BOARD_NRF52_TEMPLATE_BOARD_H_ */