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 
14 #ifndef BOARD_SILABSEFR32KIT_BOARD_H_
15 #define BOARD_SILABSEFR32KIT_BOARD_H_
16 
17 // NOTE! The VCOM on the kit board supports ONLY the standart baud rates
18 // e.g. 125000 is not working.
19 
20 // Waps usart defines
21 #define BOARD_USART_ID 0
22 
23 #define BOARD_USART_GPIO_PORT GPIOA
24 #define BOARD_USART_TX_PIN 0
25 #define BOARD_USART_RX_PIN 1
26 // ROUTELOC are dependent on GPIO defined above and mapping
27 // can be founded chip datasheet from Silabs
28 #define BOARD_USART_ROUTELOC_RXLOC USART_ROUTELOC0_RXLOC_LOC0
29 #define BOARD_USART_ROUTELOC_TXLOC USART_ROUTELOC0_TXLOC_LOC0
30 
31 // Interrupt pin for dual mcu app, unread indication
32 #define BOARD_UART_INT_PIN 8
33 #define BOARD_UART_INT_PORT GPIOD
34 
35 // Enadle vcom in silabs kit board
36 // NOTE! To enable virtual com port (VCOM): When the target device drives the
37 // VCOM_ENABLE (PA5) signal high, a communication line to the Board Controller
38 // is enabled.
39 #define BOARD_USART_VCOM_PORT GPIOA
40 #define BOARD_USART_VCOM_PIN 5
41 
42 // For further information about Silicon Labs Kit board pin configuration see:
43 // UG265: EFR32FG12 2400/868 MHz 10 dBm Wireless Starter Kit User's Guide
44 
45 // List of GPIO ports and pins for the LEDs on the board: LED0, LED1
46 #define BOARD_LED_PIN_LIST {{GPIOF, 4}, {GPIOF, 5}}
47 
48 // Active high polarity for LEDs
49 #define BOARD_LED_ACTIVE_LOW false
50 
51 // List of ext. ints, GPIO ports and pins for buttons on the board: PB0, PB1
52 #define BOARD_BUTTON_PIN_LIST {{4, GPIOF, 6}, {6, GPIOF, 7}}
53 
54 // Active low polarity for buttons
55 #define BOARD_BUTTON_ACTIVE_LOW true
56 
57 // Board has external pull-up for buttons
58 #define BOARD_BUTTON_INTERNAL_PULL false
59 
60 // Buttons use even external interrupts
61 #define BOARD_BUTTON_USE_EVEN_INT true
62 
63 
64 #endif /* BOARD_SILABSEFR32KIT_BOARD_H_ */