2022-03-03 14:21:35 +01:00
|
|
|
INCLUDES += -I$(APPDIR)
|
|
|
|
|
2023-03-30 16:12:49 +02:00
|
|
|
include ../Makefile.drivers_common
|
2015-11-01 16:42:08 +01:00
|
|
|
|
2022-03-03 14:21:35 +01:00
|
|
|
USEMODULE += test_utils_netdev_eth_minimal
|
2015-11-01 16:42:08 +01:00
|
|
|
USEMODULE += enc28j60
|
|
|
|
|
|
|
|
# set board specific peripheral configurations
|
|
|
|
ifneq (,$(filter stm32f4discovery,$(BOARD)))
|
2016-11-08 18:41:08 +01:00
|
|
|
ENC_SPI ?= SPI_DEV\(1\)
|
2015-11-01 16:42:08 +01:00
|
|
|
ENC_CS ?= GPIO_PIN\(PORT_B,12\)
|
|
|
|
ENC_INT ?= GPIO_PIN\(PORT_B,11\)
|
|
|
|
ENC_RST ?= GPIO_PIN\(PORT_B,10\)
|
2022-03-03 14:21:35 +01:00
|
|
|
# export SPI and pins
|
|
|
|
CFLAGS += -DENC28J60_PARAM_SPI=$(ENC_SPI)
|
|
|
|
CFLAGS += -DENC28J60_PARAM_CS=$(ENC_CS)
|
|
|
|
CFLAGS += -DENC28J60_PARAM_INT=$(ENC_INT)
|
|
|
|
CFLAGS += -DENC28J60_PARAM_RESET=$(ENC_RST)
|
2015-11-01 16:42:08 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|