2017-01-11 19:43:58 +01:00
|
|
|
APPLICATION = driver_encx24j600
|
2016-04-06 23:00:20 +02:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_spi periph_gpio
|
|
|
|
|
2017-04-05 17:16:29 +02:00
|
|
|
BOARD_INSUFFICIENT_MEMORY := msb-430 msb-430h nucleo32-f031 nucleo32-f042 \
|
|
|
|
nucleo32-l031 nucleo-l053 stm32f0discovery telosb \
|
2017-11-15 23:19:36 +01:00
|
|
|
wsn430-v1_3b wsn430-v1_4 z1
|
2016-04-06 23:00:20 +02:00
|
|
|
|
|
|
|
USEMODULE += gnrc_netdev_default
|
|
|
|
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
|
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\)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# fallback: set SPI bus and pins to default values
|
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\(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
|