Wirepas SDK
board.h
Go to the documentation of this file.
1 /* Copyright 2018 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
13 #ifndef _BOARD_EFR32_TEMPLATE_BOARD_H_
14 #define _BOARD_EFR32_TEMPLATE_BOARD_H_
15 
25 #define BOARD_USART_ID 0
26 
33 #define BOARD_USART_ROUTELOC_RXLOC USART_ROUTELOC0_RXLOC_LOC0
34 
40 #define BOARD_USART_ROUTELOC_TXLOC USART_ROUTELOC0_TXLOC_LOC0
41 
45 #define BOARD_USART_TX_PORT GPIOA
46 
49 #define BOARD_USART_TX_PIN 0
50 
53 #define BOARD_USART_RX_PORT GPIOA
54 
57 #define BOARD_USART_RX_PIN 1
58 
70 #define BOARD_GPIO_PIN_LIST {{GPIOF, 4}, /* PF04 */\
71  {GPIOF, 5}, /* PF05 */\
72  {GPIOF, 6}, /* PF06 */\
73  {GPIOF, 7}, /* PF07 */\
74  {GPIOA, 1}, /* PA01. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
75  {GPIOD, 8}} /* PD08. required by the dual_mcu app (indication signal) */
76 
83 #define BOARD_GPIO_ID_LED0 0 // mapped to pin PF04
84 #define BOARD_GPIO_ID_LED1 1 // mapped to pin PF05
85 #define BOARD_GPIO_ID_BUTTON0 2 // mapped to pin PF06
86 #define BOARD_GPIO_ID_BUTTON1 3 // mapped to pin PF07
87 
96 #define BOARD_GPIO_ID_USART_WAKEUP 4 // mapped to pin PA01
97 
107 #define BOARD_GPIO_ID_UART_IRQ 5 // mapped to pin PD08
108 
118 #define BOARD_LED_PIN_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1}
119 
127 #define BOARD_LED_ACTIVE_LOW false
128 
139 #define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1}
140 
149 #define BOARD_BUTTON_ACTIVE_LOW true
150 
159 #define BOARD_BUTTON_INTERNAL_PULL true
160 
161 #endif /* _BOARD_EFR32_TEMPLATE_BOARD_H_ */