Wirepas SDK
board.h File Reference

Detailed Description

Board definition for the Nordic semiconductor PCA10100 evaluation board

Definition in file board.h.

Go to the source code of this file.

Macros

#define BOARD_USART_TX_PIN   6
 
#define BOARD_USART_RX_PIN   8
 
#define BOARD_USART_CTS_PIN   7 /* For USE_USART_HW_FLOW_CONTROL */
 
#define BOARD_USART_RTS_PIN   5 /* For USE_USART_HW_FLOW_CONTROL */
 
#define BOARD_GPIO_PIN_LIST
 
#define BOARD_GPIO_ID_LED1   0
 
#define BOARD_GPIO_ID_LED2   1
 
#define BOARD_GPIO_ID_LED3   2
 
#define BOARD_GPIO_ID_LED4   3
 
#define BOARD_GPIO_ID_BUTTON1   4
 
#define BOARD_GPIO_ID_BUTTON2   5
 
#define BOARD_GPIO_ID_BUTTON3   6
 
#define BOARD_GPIO_ID_BUTTON4   7
 
#define BOARD_GPIO_ID_USART_WAKEUP   8
 
#define BOARD_GPIO_ID_UART_IRQ   9
 
#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2, BOARD_GPIO_ID_LED3, BOARD_GPIO_ID_LED4}
 
#define BOARD_LED_ACTIVE_LOW   true
 
#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON1, BOARD_GPIO_ID_BUTTON2, BOARD_GPIO_ID_BUTTON3, BOARD_GPIO_ID_BUTTON4}
 
#define BOARD_BUTTON_ACTIVE_LOW   true
 
#define BOARD_BUTTON_INTERNAL_PULL   true
 

Macro Definition Documentation

◆ BOARD_BUTTON_ACTIVE_LOW

#define BOARD_BUTTON_ACTIVE_LOW   true

Definition at line 109 of file board.h.

◆ BOARD_BUTTON_ID_LIST

Definition at line 106 of file board.h.

◆ BOARD_BUTTON_INTERNAL_PULL

#define BOARD_BUTTON_INTERNAL_PULL   true

Definition at line 112 of file board.h.

◆ BOARD_GPIO_ID_BUTTON1

#define BOARD_GPIO_ID_BUTTON1   4

Definition at line 92 of file board.h.

◆ BOARD_GPIO_ID_BUTTON2

#define BOARD_GPIO_ID_BUTTON2   5

Definition at line 93 of file board.h.

◆ BOARD_GPIO_ID_BUTTON3

#define BOARD_GPIO_ID_BUTTON3   6

Definition at line 94 of file board.h.

◆ BOARD_GPIO_ID_BUTTON4

#define BOARD_GPIO_ID_BUTTON4   7

Definition at line 95 of file board.h.

◆ BOARD_GPIO_ID_LED1

#define BOARD_GPIO_ID_LED1   0

Definition at line 88 of file board.h.

◆ BOARD_GPIO_ID_LED2

#define BOARD_GPIO_ID_LED2   1

Definition at line 89 of file board.h.

◆ BOARD_GPIO_ID_LED3

#define BOARD_GPIO_ID_LED3   2

Definition at line 90 of file board.h.

◆ BOARD_GPIO_ID_LED4

#define BOARD_GPIO_ID_LED4   3

Definition at line 91 of file board.h.

◆ BOARD_GPIO_ID_UART_IRQ

#define BOARD_GPIO_ID_UART_IRQ   9

Definition at line 97 of file board.h.

◆ BOARD_GPIO_ID_USART_WAKEUP

#define BOARD_GPIO_ID_USART_WAKEUP   8

Definition at line 96 of file board.h.

◆ BOARD_GPIO_PIN_LIST

#define BOARD_GPIO_PIN_LIST
Value:
{13, /* P0.13 */\
14, /* P0.14 */\
15, /* P0.15 */\
16, /* P0.16 */\
11, /* P0.11 */\
12, /* P0.12 */\
24, /* P0.24 */\
25, /* P0.25 */\
8, /* P0.08. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
11} /* P0.11. required by the dual_mcu app (indication signal) */

Definition at line 76 of file board.h.

◆ BOARD_LED_ACTIVE_LOW

#define BOARD_LED_ACTIVE_LOW   true

Definition at line 103 of file board.h.

◆ BOARD_LED_ID_LIST

Definition at line 100 of file board.h.

◆ BOARD_USART_CTS_PIN

#define BOARD_USART_CTS_PIN   7 /* For USE_USART_HW_FLOW_CONTROL */

Definition at line 72 of file board.h.

◆ BOARD_USART_RTS_PIN

#define BOARD_USART_RTS_PIN   5 /* For USE_USART_HW_FLOW_CONTROL */

Definition at line 73 of file board.h.

◆ BOARD_USART_RX_PIN

#define BOARD_USART_RX_PIN   8

Definition at line 71 of file board.h.

◆ BOARD_USART_TX_PIN

#define BOARD_USART_TX_PIN   6

NRF_P0 SW_pin PCA10056 Notes (recommended usage)

P0.00 0 [XTAL 32k] P0.01 1 [XTAL 32k] P0.02 2 gpio/AIN0 (low freq) P0.03 3 gpio/AIN1 (low freq) P0.04 4 gpio/AIN2 P0.05 5 UART_RTS (gpio/AIN3) P0.06 6 UART_TX P0.07 7 UART_CTS (gpio/TRACECLK) P0.08 8 UART_RX P0.09 9 gpio/NFC1 (low freq) P0.10 10 gpio/NFC2 (low freq) P0.11 11 gpio/nBUTTON1 P0.12 12 gpio/nBUTTON2 P0.13 13 gpio/nLED1 P0.14 14 gpio/nLED2 P0.15 15 gpio/nLED3 P0.16 16 gpio/nLED4 P0.17 17 gpio P0.18 18 nRESET P0.19 19 gpio P0.20 20 gpio P0.21 21 gpio P0.22 22 gpio P0.23 23 gpio P0.24 24 gpio/nBUTTON3 P0.25 25 gpio/nBUTTON4 P0.26 26 gpio P0.27 27 gpio P0.28 28 gpio/AIN4 (low freq) P0.29 29 gpio/AIN5 (low freq) P0.30 30 gpio/AIN6 (low freq) P0.31 31 gpio/AIN7 (low freq)

NRF_P1: P1.00 32 gpio/SWO P1.01 33 gpio (low freq) P1.02 34 gpio (low freq) P1.03 35 gpio (low freq) P1.04 36 gpio (low freq) P1.05 37 gpio (low freq) P1.06 38 gpio (low freq) P1.07 39 gpio (low freq) P1.08 40 gpio P1.09 41 gpio

Definition at line 70 of file board.h.