2022-03-03 14:22:30 +01:00
|
|
|
INCLUDES += -I$(APPDIR)
|
|
|
|
|
2023-03-30 16:12:49 +02:00
|
|
|
include ../Makefile.drivers_common
|
2016-04-06 23:00:20 +02:00
|
|
|
|
2022-03-03 14:22:30 +01:00
|
|
|
USEMODULE += test_utils_netdev_eth_minimal
|
2016-04-06 23:00:20 +02:00
|
|
|
USEMODULE += encx24j600
|
|
|
|
|
|
|
|
# set board specific peripheral configurations
|
2018-02-27 14:31:53 +01:00
|
|
|
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
|
2018-02-27 14:31:53 +01:00
|
|
|
# tested only on nucleo-f334r8
|
2016-11-08 18:41:38 +01:00
|
|
|
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\)
|
|
|
|
|
2022-03-03 14:10:33 +01:00
|
|
|
# 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
|