Wirepas SDK
board.h
Go to the documentation of this file.
1 /* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
13 #ifndef BOARD_BGM220_EK4314A_BOARD_H_
14 #define BOARD_BGM220_EK4314A_BOARD_H_
15 
16 // Waps usart defines
17 #define BOARD_USART_ID 0
18 
19 #define BOARD_USART_GPIO_PORT GPIO_PORTA
20 #define BOARD_USART_TX_PIN 5
21 #define BOARD_USART_RX_PIN 6
22 
23 // List of GPIO ports and pins for the LEDs on the board:
24 #define BOARD_LED_PIN_LIST {{GPIO_PORTA, 4}}
25 
26 // Active high polarity for LEDs
27 #define BOARD_LED_ACTIVE_LOW false
28 
29 // List of ext. ints, GPIO ports and pins for buttons on the board:
30 // NOTE! EFR32xG22 can wake up from deep sleep (EM2) using GPIO input trigger
31 // only from A or B ports. Having the button in port C prevents button
32 // to be used for waking up from deep sleep.
33 #define BOARD_BUTTON_PIN_LIST {{4, GPIO_PORTC, 7}}
34 
35 // Active low polarity for buttons
36 #define BOARD_BUTTON_ACTIVE_LOW true
37 
38 // Board has external pull-up for buttons
39 #define BOARD_BUTTON_INTERNAL_PULL false
40 
41 // Buttons use even external interrupts
42 #define BOARD_BUTTON_USE_EVEN_INT true
43 
44 // Buttons use even external interrupts
45 //#define BOARD_BUTTON_USE_EVEN_INT true
46 
47 #endif /* BOARD_BGM220_EK4314A_BOARD_H_ */