Wirepas SDK
board.h File Reference

Detailed Description

Board definition for the Nordic semiconductor PCA10059 Dongle

Definition in file board.h.

Go to the source code of this file.

Macros

#define BOARD_USART_TX_PIN   29
 
#define BOARD_USART_RX_PIN   31
 
#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_LED_G   2
 
#define BOARD_GPIO_ID_LED_B   3
 
#define BOARD_GPIO_ID_BUTTON0   4
 
#define BOARD_GPIO_ID_USART_WAKEUP   5
 
#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2, BOARD_GPIO_ID_LED_G, BOARD_GPIO_ID_LED_B}
 
#define BOARD_LED_ACTIVE_LOW   true
 
#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON0}
 
#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 115 of file board.h.

◆ BOARD_BUTTON_ID_LIST

#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON0}

Definition at line 112 of file board.h.

◆ BOARD_BUTTON_INTERNAL_PULL

#define BOARD_BUTTON_INTERNAL_PULL   true

Definition at line 118 of file board.h.

◆ BOARD_GPIO_ID_BUTTON0

#define BOARD_GPIO_ID_BUTTON0   4

Definition at line 102 of file board.h.

◆ BOARD_GPIO_ID_LED1

#define BOARD_GPIO_ID_LED1   0

Definition at line 98 of file board.h.

◆ BOARD_GPIO_ID_LED2

#define BOARD_GPIO_ID_LED2   1

Definition at line 99 of file board.h.

◆ BOARD_GPIO_ID_LED_B

#define BOARD_GPIO_ID_LED_B   3

Definition at line 101 of file board.h.

◆ BOARD_GPIO_ID_LED_G

#define BOARD_GPIO_ID_LED_G   2

Definition at line 100 of file board.h.

◆ BOARD_GPIO_ID_USART_WAKEUP

#define BOARD_GPIO_ID_USART_WAKEUP   5

Definition at line 103 of file board.h.

◆ BOARD_GPIO_PIN_LIST

#define BOARD_GPIO_PIN_LIST
Value:
{6, /* P0.06 */\
8, /* P0.08 */\
41, /* P1.09 */\
12, /* P0.12 */\
38, /* P1.06 */\
31} /* P0.31. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */

Definition at line 90 of file board.h.

◆ BOARD_LED_ACTIVE_LOW

#define BOARD_LED_ACTIVE_LOW   true

Definition at line 109 of file board.h.

◆ BOARD_LED_ID_LIST

Definition at line 106 of file board.h.

◆ BOARD_USART_CTS_PIN

#define BOARD_USART_CTS_PIN   7 /* For USE_USART_HW_FLOW_CONTROL */

Definition at line 86 of file board.h.

◆ BOARD_USART_RTS_PIN

#define BOARD_USART_RTS_PIN   5 /* For USE_USART_HW_FLOW_CONTROL */

Definition at line 87 of file board.h.

◆ BOARD_USART_RX_PIN

#define BOARD_USART_RX_PIN   31

Definition at line 85 of file board.h.

◆ BOARD_USART_TX_PIN

#define BOARD_USART_TX_PIN   29

NRF_P0 SW_pin PCA10056 PCA10059 Notes (recommended usage)

P0.00 0 [XTAL 32k] [XTAL 32k] P0.01 1 [XTAL 32k] [XTAL 32k] P0.02 2 gpio/AIN0 0.02 (low freq) P0.03 3 gpio/AIN1 - (low freq) P0.04 4 gpio/AIN2 0.04 P0.05 5 UART_RTS - P0.06 6 UART_TX nLED1 P0.07 7 UART_CTS - P0.08 8 UART_RX nLED2red P0.09 9 gpio/NFC1 0.09 (low freq) P0.10 10 gpio/NFC2 0.10 (low freq) P0.11 11 gpio/nBUTTON1 0.11 P0.12 12 gpio/nBUTTON2 nLED2blue P0.13 13 gpio/nLED1 0.13 P0.14 14 gpio/nLED2 0.14 P0.15 15 gpio/nLED3 0.15 P0.16 16 gpio/nLED4 - P0.17 17 gpio/FLASH 0.17 P0.18 18 nRESET nRESET P0.19 19 gpio/FLASH nRESET (QSPI/SCK) P0.20 20 gpio/FLASH 0.20 P0.21 21 gpio/FLASH nRESET (QSPI) P0.22 22 gpio/FLASH 0.22 (QSPI) P0.23 23 gpio/FLASH nRESET (QSPI) P0.24 24 gpio/nBUTTON3 0.24 P0.25 25 gpio/nBUTTON4 nRESET P0.26 26 gpio 0.26 P0.27 27 gpio - P0.28 28 gpio/AIN4 - (low freq) P0.29 29 gpio/AIN5 0.29 (low freq) P0.30 30 gpio/AIN6 - (low freq) P0.31 31 gpio/AIN7 0.31 (low freq)

NRF_P1: P1.00 32 gpio/SWO 1.00 (QSPI) P1.01 33 gpio 1.01 (low freq) P1.02 34 gpio 1.02 (low freq) P1.03 35 gpio - (low freq) P1.04 36 gpio 1.04 (low freq) P1.05 37 gpio - (low freq) P1.06 38 gpio nSW1 (low freq) P1.07 39 gpio 1.07 (low freq) P1.08 40 gpio - P1.09 41 gpio nLED2green P1.10 42 gpio 1.10 (low freq) P1.11 43 gpio 1.11 (low freq) P1.12 44 gpio - (low freq) P1.13 45 gpio 1.13 (low freq) P1.14 46 gpio - (low freq) P1.15 47 gpio 1.15 (low freq)

Definition at line 84 of file board.h.