1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_encx24j600/Makefile
Martine Lenders a2e51a039a tests: remove unnecessary gnrc_netdev_default include
The `driver_enc28j60` and `driver_encx24j600` applications exist to
test the network device drivers of this type. Including the *default*
driver of the board is thus non-sensical and might even be harmful for
the success of this test (if default device in initialized before the
device that is tested).

Additionally, does the removal of this module allow for some boards to
fit this into their memory (at least in my linker configuration), so I
removed them from the `BOARD_INSUFFICIENT_MEMORY` list.
2017-11-28 20:12:43 +01:00

43 lines
1.2 KiB
Makefile

APPLICATION = driver_encx24j600
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_spi periph_gpio
BOARD_INSUFFICIENT_MEMORY := nucleo-l053 nucleo32-f031 nucleo32-f042 \
nucleo32-l031 stm32f0discovery telosb \
wsn430-v1_3b wsn430-v1_4
USEMODULE += auto_init_gnrc_netif
USEMODULE += encx24j600
USEMODULE += gnrc_ipv6_router_default
USEMODULE += gnrc_icmpv6_echo
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += ps
# lower pktbuf size
CFLAGS += -DGNRC_PKTBUF_SIZE=2048
# set board specific peripheral configurations
ifneq (,$(filter nucleo-f334,$(BOARD)))
# these settings are probably valid for PoEll-i on most nucelo boards, but
# tested only on nucleo-f334
ENC_SPI ?= SPI_DEV\(0\)
ENC_CS ?= GPIO_PIN\(PORT_C,10\)
ENC_INT ?= GPIO_PIN\(PORT_D,2\)
endif
# fallback: set SPI bus and pins to default values
ENC_SPI ?= SPI_DEV\(0\)
ENC_CS ?= GPIO_PIN\(0,0\)
ENC_INT ?= GPIO_PIN\(0,1\)
# export SPI and pins
CFLAGS += -DENCX24J600_SPI=$(ENC_SPI)
CFLAGS += -DENCX24J600_CS=$(ENC_CS)
CFLAGS += -DENCX24J600_INT=$(ENC_INT)
# make sure we read the local encx24j600 params file
CFLAGS += -I$(CURDIR)
include $(RIOTBASE)/Makefile.include