Wirepas SDK
board.h File Reference

Detailed Description

Board definition for the Panasonic PAN1780 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_LED0   0
 
#define BOARD_GPIO_ID_LED1   1
 
#define BOARD_GPIO_ID_LED2   2
 
#define BOARD_GPIO_ID_LED3   3
 
#define BOARD_GPIO_ID_BUTTON0   4
 
#define BOARD_GPIO_ID_BUTTON1   5
 
#define BOARD_GPIO_ID_BUTTON2   6
 
#define BOARD_GPIO_ID_BUTTON3   7
 
#define BOARD_GPIO_ID_USART_WAKEUP   8
 
#define BOARD_GPIO_ID_UART_IRQ   9
 
#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2, BOARD_GPIO_ID_LED3}
 
#define BOARD_LED_ACTIVE_LOW   true
 
#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1, BOARD_GPIO_ID_BUTTON2, BOARD_GPIO_ID_BUTTON3}
 
#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

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 98 of file board.h.

◆ BOARD_GPIO_ID_BUTTON1

#define BOARD_GPIO_ID_BUTTON1   5

Definition at line 99 of file board.h.

◆ BOARD_GPIO_ID_BUTTON2

#define BOARD_GPIO_ID_BUTTON2   6

Definition at line 100 of file board.h.

◆ BOARD_GPIO_ID_BUTTON3

#define BOARD_GPIO_ID_BUTTON3   7

Definition at line 101 of file board.h.

◆ BOARD_GPIO_ID_LED0

#define BOARD_GPIO_ID_LED0   0

Definition at line 94 of file board.h.

◆ BOARD_GPIO_ID_LED1

#define BOARD_GPIO_ID_LED1   1

Definition at line 95 of file board.h.

◆ BOARD_GPIO_ID_LED2

#define BOARD_GPIO_ID_LED2   2

Definition at line 96 of file board.h.

◆ BOARD_GPIO_ID_LED3

#define BOARD_GPIO_ID_LED3   3

Definition at line 97 of file board.h.

◆ BOARD_GPIO_ID_UART_IRQ

#define BOARD_GPIO_ID_UART_IRQ   9

Definition at line 103 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) */\
17} /* P0.17. required by the dual_mcu app (indication signal) */

Definition at line 82 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 78 of file board.h.

◆ BOARD_USART_RTS_PIN

#define BOARD_USART_RTS_PIN   5 /* For USE_USART_HW_FLOW_CONTROL */

Definition at line 79 of file board.h.

◆ BOARD_USART_RX_PIN

#define BOARD_USART_RX_PIN   8

Definition at line 77 of file board.h.

◆ BOARD_USART_TX_PIN

#define BOARD_USART_TX_PIN   6

NRF_P0 SW_pin PAN1780 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 nBUTTON1 P0.12 12 nBUTTON2/SPI1 nSS P0.13 13 nLED1/SPI1 MOSI P0.14 14 nLED2/SPI1 MISO P0.15 15 nLED3/SPI1 SCK P0.16 16 nLED4 P0.17 17 IRQ P0.18 18 RESET P0.19 19 P0.20 20 P0.21 21 P0.22 22 P0.23 23 P0.24 24 nBUTTON3 P0.25 25 nBUTTON4 P0.26 26 I2C SDA P0.27 27 I2C SCL 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 P1.00 (QSPI) P1.01 33 UART4 Tx (low freq) P1.02 34 UART4 Rx (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 gpio (low freq) P1.14 46 gpio (low freq) P1.15 47 gpio (low freq)

Definition at line 76 of file board.h.