1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/encx24j600/Makefile

23 lines
606 B
Makefile
Raw Normal View History

INCLUDES += -I$(APPDIR)
include ../Makefile.drivers_common
2016-04-06 23:00:20 +02:00
USEMODULE += test_utils_netdev_eth_minimal
2016-04-06 23:00:20 +02:00
USEMODULE += encx24j600
# set board specific peripheral configurations
ifneq (,$(filter nucleo-f334r8,$(BOARD)))
2016-04-06 23:00:20 +02:00
# these settings are probably valid for PoEll-i on most nucelo boards, but
# tested only on nucleo-f334r8
ENC_SPI ?= SPI_DEV\(0\)
2016-04-06 23:00:20 +02:00
ENC_CS ?= GPIO_PIN\(PORT_C,10\)
ENC_INT ?= GPIO_PIN\(PORT_D,2\)
# export SPI and pins
CFLAGS += -DENCX24J600_SPI=$(ENC_SPI)
CFLAGS += -DENCX24J600_CS=$(ENC_CS)
CFLAGS += -DENCX24J600_INT=$(ENC_INT)
endif
2016-04-06 23:00:20 +02:00
include $(RIOTBASE)/Makefile.include