tests/driver_xbee: simplified Makefile
This commit is contained in:
parent
770efad28a
commit
77d40d789d
@ -5,17 +5,6 @@ FEATURES_REQUIRED = periph_uart periph_gpio
|
||||
|
||||
BOARD_INSUFFICIENT_MEMORY := stm32f0discovery weio
|
||||
|
||||
# Define default pin mappings for some boards:
|
||||
ifneq (,$(filter stm32f0discovery,$(BOARD)))
|
||||
export XBEE_UART ?= "UART_DEV(0)"
|
||||
endif
|
||||
ifneq (,$(filter stm32f4discovery,$(BOARD)))
|
||||
export XBEE_UART ?= "UART_DEV(0)"
|
||||
endif
|
||||
ifneq (,$(filter nucleo-f091,$(BOARD)))
|
||||
export XBEE_UART ?= "UART_DEV(0)"
|
||||
endif
|
||||
|
||||
USEMODULE += xbee
|
||||
USEMODULE += gnrc_netif
|
||||
USEMODULE += auto_init_gnrc_netif
|
||||
@ -24,12 +13,11 @@ USEMODULE += gnrc_pktdump
|
||||
USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
|
||||
ifneq (,$(XBEE_UART))
|
||||
# set default UART to use in case none was defined
|
||||
XBEE_UART ?= "UART_NUMOF-1"
|
||||
|
||||
# export UART to params file
|
||||
CFLAGS += -DXBEE_UART=$(XBEE_UART)
|
||||
else
|
||||
# set default
|
||||
CFLAGS += -DXBEE_UART="UART_DEV(0)"
|
||||
endif
|
||||
|
||||
# add current directory to the include path. Putting it in CFLAGS will make
|
||||
# it go to the beginning, before the standard includes.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user