Wirepas SDK
board.h File Reference

Detailed Description

Board definition for the Nordic semiconductor PCA10112

Definition in file board.h.

Go to the source code of this file.

Functions

void Fem_init (void)
 

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_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_FEM_MODE_PIN   17
 
#define BOARD_FEM_RXEN_PIN   19
 
#define BOARD_FEM_ANTSEL_PIN   20
 
#define BOARD_FEM_CS_PIN   21
 
#define BOARD_FEM_TXEN_PIN   22
 
#define BOARD_FEM_PDN_PIN   23
 
#define BOARD_FEM_SPI_MOSI_PIN   45
 
#define BOARD_FEM_SPI_MISO_PIN   46
 
#define BOARD_FEM_SPI_CLK_PIN   47
 

Function Documentation

◆ Fem_init()

void Fem_init ( void  )

Macro Definition Documentation

◆ BOARD_BUTTON_ACTIVE_LOW

#define BOARD_BUTTON_ACTIVE_LOW   true

Definition at line 114 of file board.h.

◆ BOARD_BUTTON_ID_LIST

Definition at line 111 of file board.h.

◆ BOARD_FEM_ANTSEL_PIN

#define BOARD_FEM_ANTSEL_PIN   20

Definition at line 126 of file board.h.

◆ BOARD_FEM_CS_PIN

#define BOARD_FEM_CS_PIN   21

Definition at line 127 of file board.h.

◆ BOARD_FEM_MODE_PIN

#define BOARD_FEM_MODE_PIN   17

Definition at line 124 of file board.h.

◆ BOARD_FEM_PDN_PIN

#define BOARD_FEM_PDN_PIN   23

Definition at line 129 of file board.h.

◆ BOARD_FEM_RXEN_PIN

#define BOARD_FEM_RXEN_PIN   19

Definition at line 125 of file board.h.

◆ BOARD_FEM_SPI_CLK_PIN

#define BOARD_FEM_SPI_CLK_PIN   47

Definition at line 134 of file board.h.

◆ BOARD_FEM_SPI_MISO_PIN

#define BOARD_FEM_SPI_MISO_PIN   46

Definition at line 133 of file board.h.

◆ BOARD_FEM_SPI_MOSI_PIN

#define BOARD_FEM_SPI_MOSI_PIN   45

Definition at line 132 of file board.h.

◆ BOARD_FEM_TXEN_PIN

#define BOARD_FEM_TXEN_PIN   22

Definition at line 128 of file board.h.

◆ BOARD_GPIO_ID_BUTTON1

#define BOARD_GPIO_ID_BUTTON1   4

Definition at line 98 of file board.h.

◆ BOARD_GPIO_ID_BUTTON2

#define BOARD_GPIO_ID_BUTTON2   5

Definition at line 99 of file board.h.

◆ BOARD_GPIO_ID_BUTTON3

#define BOARD_GPIO_ID_BUTTON3   6

Definition at line 100 of file board.h.

◆ BOARD_GPIO_ID_BUTTON4

#define BOARD_GPIO_ID_BUTTON4   7

Definition at line 101 of file board.h.

◆ BOARD_GPIO_ID_LED1

#define BOARD_GPIO_ID_LED1   0

Definition at line 94 of file board.h.

◆ BOARD_GPIO_ID_LED2

#define BOARD_GPIO_ID_LED2   1

Definition at line 95 of file board.h.

◆ BOARD_GPIO_ID_LED3

#define BOARD_GPIO_ID_LED3   2

Definition at line 96 of file board.h.

◆ BOARD_GPIO_ID_LED4

#define BOARD_GPIO_ID_LED4   3

Definition at line 97 of file board.h.

◆ BOARD_GPIO_ID_USART_WAKEUP

#define BOARD_GPIO_ID_USART_WAKEUP   8

Definition at line 102 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) */

Definition at line 83 of file board.h.

◆ BOARD_LED_ACTIVE_LOW

#define BOARD_LED_ACTIVE_LOW   true

Definition at line 108 of file board.h.

◆ BOARD_LED_ID_LIST

Definition at line 105 of file board.h.

◆ BOARD_USART_CTS_PIN

#define BOARD_USART_CTS_PIN   7 /* For USE_USART_HW_FLOW_CONTROL */

Definition at line 79 of file board.h.

◆ BOARD_USART_RTS_PIN

#define BOARD_USART_RTS_PIN   5 /* For USE_USART_HW_FLOW_CONTROL */

Definition at line 80 of file board.h.

◆ BOARD_USART_RX_PIN

#define BOARD_USART_RX_PIN   8

Definition at line 78 of file board.h.

◆ BOARD_USART_TX_PIN

#define BOARD_USART_TX_PIN   6

NRF_P0 SW_pin PCA10112 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 P0.06 6 UART_TX P0.07 7 UART_CTS 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/FEM_MODE P0.18 18 nRESET P0.19 19 gpio/FEM_RXEN P0.20 20 gpio/FEM_ANTSEL P0.21 21 gpio/FEM_CS P0.22 22 gpio/FEM_TXEN P0.23 23 gpio/FEM_PDN 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 P1.10 42 gpio (low freq) P1.11 43 gpio (low freq) P1.12 44 gpio (low freq) P1.13 45 FEM_MISO (low freq) P1.14 46 FEM_MOSI (low freq) P1.15 47 FEM_CLK (low freq)

Definition at line 77 of file board.h.