 |
Wirepas SDK
|
|
Go to the documentation of this file.
12 #ifndef BOARD_PCA10171_BOARD_H_
13 #define BOARD_PCA10171_BOARD_H_
57 #define BOARD_USART_TX_PIN 27
58 #define BOARD_USART_RX_PIN 26
59 #define BOARD_USART_CTS_PIN 15
60 #define BOARD_USART_RTS_PIN 14
63 #define BOARD_GPIO_PIN_LIST {0, \
75 #define BOARD_GPIO_ID_LED1 0 // mapped to pin P0.00
76 #define BOARD_GPIO_ID_LED2 1 // mapped to pin P0.01
77 #define BOARD_GPIO_ID_LED3 2 // mapped to pin P0.04
78 #define BOARD_GPIO_ID_LED4 3 // mapped to pin P0.05
79 #define BOARD_GPIO_ID_BUTTON1 4 // mapped to pin P0.08
80 #define BOARD_GPIO_ID_BUTTON2 5 // mapped to pin P0.09
81 #define BOARD_GPIO_ID_BUTTON3 6 // mapped to pin P0.18
82 #define BOARD_GPIO_ID_BUTTON4 7 // mapped to pin P0.19
83 #define BOARD_GPIO_ID_USART_WAKEUP 8 // mapped to pin P0.26
84 #define BOARD_GPIO_ID_UART_IRQ 9 // mapped to pin P0.10
87 #define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2, BOARD_GPIO_ID_LED3, BOARD_GPIO_ID_LED4}
90 #define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON1, BOARD_GPIO_ID_BUTTON2, BOARD_GPIO_ID_BUTTON3, BOARD_GPIO_ID_BUTTON4}
93 #define BOARD_LED_ACTIVE_LOW false
96 #define BOARD_BUTTON_ACTIVE_LOW true
99 #define BOARD_BUTTON_INTERNAL_PULL true
104 #ifdef BOARD_SUPPORT_DCDC
105 #error This option has been moved to board/<board_name>/config.mk
109 #define EXT_FLASH_SPI_MOSI 11 // P0.11
110 #define EXT_FLASH_SPI_MISO 12 // P0.12
111 #define EXT_FLASH_SPI_SCK 13 // P0.13
112 #define EXT_FLASH_CS 20 // P0.20
113 #define EXT_FLASH_SPIM_P NRF_SPIM1
115 #define EXT_FLASH_DRIVER_DEBUG_LED