mirror of
https://github.com/espressif/openthread.git
synced 2026-08-31 14:29:54 +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
@@ -33,16 +33,8 @@ lib_LIBRARIES = libopenthread-samr21.a
|
||||
override CFLAGS := $(filter-out -pedantic-errors,$(CFLAGS))
|
||||
override CXXFLAGS := $(filter-out -pedantic-errors,$(CXXFLAGS))
|
||||
|
||||
#SAMR21_BOARD=USER_BOARD
|
||||
#SAMR21_CPU=__SAMR21E18A__
|
||||
|
||||
SAMR21_BOARD=SAMR21_XPLAINED_PRO
|
||||
SAMR21_CPU=__SAMR21G18A__
|
||||
|
||||
libopenthread_samr21_a_CPPFLAGS = \
|
||||
-D ARM_MATH_CM0PLUS=true \
|
||||
-D BOARD=$(SAMR21_BOARD) \
|
||||
-D $(SAMR21_CPU) \
|
||||
-D PHY_AT86RF233 \
|
||||
-D SAL_TYPE=AT86RF2xx \
|
||||
-D USART_CALLBACK_MODE=true \
|
||||
|
||||
Reference in New Issue
Block a user