Wirepas SDK
Main Page
Related Pages
Data Structures
Files
Example applications
File List
Globals
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
27
#define BOARD_USART_RX_PIN 8
31
#define BOARD_USART_CTS_PIN 7
35
#define BOARD_USART_RTS_PIN 5
36
48
#define BOARD_GPIO_PIN_LIST {17,
/* P0.17 */
\
49
18,
/* P0.18 */
\
50
19,
/* P0.19 */
\
51
20,
/* P0.20 */
\
52
13,
/* P0.13 */
\
53
14,
/* P0.14 */
\
54
15,
/* P0.15 */
\
55
16,
/* P0.16 */
\
56
8,
/* P0.08. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */
\
57
11}
/* P0.11. required by the dual_mcu app (indication signal) */
58
65
#define BOARD_GPIO_ID_LED0 0
// mapped to pin P0.17
66
#define BOARD_GPIO_ID_LED1 1
// mapped to pin P0.18
67
#define BOARD_GPIO_ID_LED2 2
// mapped to pin P0.19
68
#define BOARD_GPIO_ID_LED3 3
// mapped to pin P0.20
69
#define BOARD_GPIO_ID_BUTTON0 4
// mapped to pin P0.13
70
#define BOARD_GPIO_ID_BUTTON1 5
// mapped to pin P0.14
71
#define BOARD_GPIO_ID_BUTTON2 6
// mapped to pin P0.15
72
#define BOARD_GPIO_ID_BUTTON3 7
// mapped to pin P0.16
73
#define BOARD_GPIO_ID_USART_WAKEUP 8
// mapped to P0.08
74
#define BOARD_GPIO_ID_UART_IRQ 9
// mapped to P0.11
84
#define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2, BOARD_GPIO_ID_LED3}
85
94
#define BOARD_LED_ACTIVE_LOW true
95
106
#define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1, BOARD_GPIO_ID_BUTTON2, BOARD_GPIO_ID_BUTTON3}
107
115
#define BOARD_BUTTON_ACTIVE_LOW true
116
125
#define BOARD_BUTTON_INTERNAL_PULL true
126
127
#endif
/* _BOARD_NRF52_TEMPLATE_BOARD_H_ */