mirror of
https://github.com/espressif/openthread.git
synced 2026-10-06 07:47:41 +00:00
[samr21] Add possibility to define board with command line (#3491)
By default Makefile-samr21 builds for SAM R21 Xplained Pro board. Another
board can be specified with BOARD variable through command line:
make -f examples/Makefile-samr21 BOARD=<TARGET_BOARD>
Currently supported following boards: SAMR21_XPLAINED_PRO,
SAMR21G18_MODULE, SAMR21B18_MODULE.
Signed-off-by: Oleksandr Grytsov <[email protected]>
This commit is contained in:
committed by
Jonathan Hui
parent
9fee87c071
commit
c4a7e8570d
+10
-1
@@ -51,10 +51,19 @@
|
||||
|
||||
#define AT86RFX_SPI_BAUDRATE 5000000UL
|
||||
|
||||
#if BOARD==USER_BOARD
|
||||
#if (BOARD==SAMR21G18_MODULE) || (BOARD==SAMR21B18_MODULE)
|
||||
|
||||
#define CONF_USER_ROW_EXIST
|
||||
|
||||
#define UART_SERCOM_MODULE SERCOM2
|
||||
#define UART_SERCOM_MUX_SETTING USART_RX_3_TX_2_XCK_3
|
||||
#define UART_SERCOM_PINMUX_PAD0 PINMUX_UNUSED
|
||||
#define UART_SERCOM_PINMUX_PAD1 PINMUX_UNUSED
|
||||
#define UART_SERCOM_PINMUX_PAD2 PINMUX_PA14C_SERCOM2_PAD2
|
||||
#define UART_SERCOM_PINMUX_PAD3 PINMUX_PA15C_SERCOM2_PAD3
|
||||
#define UART_SERCOM_DMAC_ID_TX SERCOM2_DMAC_ID_TX
|
||||
#define UART_SERCOM_DMAC_ID_RX SERCOM2_DMAC_ID_RX
|
||||
|
||||
#endif
|
||||
|
||||
#if BOARD==SAMR21_XPLAINED_PRO
|
||||
|
||||
Reference in New Issue
Block a user