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 
32 #define BOARD_USART_GPIO_PORT GPIOA
33 
39 #define BOARD_USART_ROUTELOC_RXLOC USART_ROUTELOC0_RXLOC_LOC0
40 
46 #define BOARD_USART_ROUTELOC_TXLOC USART_ROUTELOC0_TXLOC_LOC0
47 
51 #define BOARD_USART_TX_PIN 0
52 
55 #define BOARD_USART_RX_PIN 1
56 
66 #define BOARD_UART_INT_PIN 8
67 #define BOARD_UART_INT_PORT GPIOD
68 
81 #define BOARD_LED_PIN_LIST {{GPIOF, 4}, {GPIOF, 5}}
82 
90 #define BOARD_LED_ACTIVE_LOW false
91 
106 #define BOARD_BUTTON_PIN_LIST {{4, GPIOF, 6}, {6, GPIOF, 7}}
107 
116 #define BOARD_BUTTON_ACTIVE_LOW true
117 
126 #define BOARD_BUTTON_INTERNAL_PULL true
127 
143 #define BOARD_BUTTON_USE_EVEN_INT true
144 
145 #endif /* _BOARD_EFR32_TEMPLATE_BOARD_H_ */