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 
71 #define BOARD_GPIO_PIN_LIST {{GPIOF, 4}, /* PF04 */\
72  {GPIOF, 5}, /* PF05 */\
73  {GPIOF, 6}, /* PF06 */\
74  {GPIOF, 7}, /* PF07 */\
75  {GPIOA, 1}, /* PA01. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
76  {GPIOD, 8}} /* PD08. required by the dual_mcu app (indication signal) */
77 
84 #define BOARD_GPIO_ID_LED0 0 // mapped to pin PF04
85 #define BOARD_GPIO_ID_LED1 1 // mapped to pin PF05
86 #define BOARD_GPIO_ID_BUTTON0 2 // mapped to pin PF06
87 #define BOARD_GPIO_ID_BUTTON1 3 // mapped to pin PF07
88 
97 #define BOARD_GPIO_ID_USART_WAKEUP 4 // mapped to pin PA01
98 
108 #define BOARD_GPIO_ID_UART_IRQ 5 // mapped to pin PD08
109 
120 #define BOARD_LED_PIN_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1}
121 
129 #define BOARD_LED_ACTIVE_LOW false
130 
141 #define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0, BOARD_GPIO_ID_BUTTON1}
142 
151 #define BOARD_BUTTON_ACTIVE_LOW true
152 
161 #define BOARD_BUTTON_INTERNAL_PULL true
162 
163 #endif /* _BOARD_EFR32_TEMPLATE_BOARD_H_ */