2022-02-28 21:57:58 +01:00
|
|
|
BOARD ?= nucleo-f767zi
|
|
|
|
|
2023-05-10 10:36:12 +02:00
|
|
|
include ../Makefile.sys_common
|
2017-05-19 15:39:07 +02:00
|
|
|
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2017-05-19 15:39:07 +02:00
|
|
|
USEMODULE += ps
|
|
|
|
|
|
|
|
USEMODULE += conn_can
|
|
|
|
USEMODULE += can_isotp
|
|
|
|
USEMODULE += conn_can_isotp_multi
|
|
|
|
USEMODULE += can_pm
|
2017-05-19 15:45:56 +02:00
|
|
|
USEMODULE += can_trx
|
2020-01-27 14:31:25 +01:00
|
|
|
USEMODULE += auto_init_can
|
2017-05-19 15:39:07 +02:00
|
|
|
|
2019-10-29 13:22:19 +01:00
|
|
|
FEATURES_REQUIRED += periph_can
|
|
|
|
FEATURES_REQUIRED += periph_gpio_irq
|
|
|
|
|
|
|
|
TRX_TO_BUILD ?= tja1042
|
|
|
|
|
|
|
|
ifneq (,$(filter tja1042,$(TRX_TO_BUILD)))
|
|
|
|
USEMODULE += tja1042
|
|
|
|
TJA1042_STB_PIN ?= GPIO_PIN\(0,0\)
|
|
|
|
|
|
|
|
CFLAGS += -DTJA1042_STB_PIN=$(TJA1042_STB_PIN)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter ncv7356,$(TRX_TO_BUILD)))
|
|
|
|
USEMODULE += ncv7356
|
|
|
|
NCV7356_MODE0_PIN ?= GPIO_PIN\(0,0\)
|
|
|
|
NCV7356_MODE1_PIN ?= GPIO_PIN\(0,1\)
|
|
|
|
|
|
|
|
CFLAGS += -DNCV7356_MODE0_PIN=$(NCV7356_MODE0_PIN)
|
|
|
|
CFLAGS += -DNCV7356_MODE1_PIN=$(NCV7356_MODE1_PIN)
|
|
|
|
endif
|
2020-10-16 10:37:52 +02:00
|
|
|
|
2018-06-22 22:04:15 +02:00
|
|
|
CFLAGS += -DCAN_PKT_BUF_SIZE=64
|
|
|
|
CFLAGS += -DCAN_ROUTER_MAX_FILTER=32
|
|
|
|
|
2017-05-19 15:39:07 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
2020-10-16 10:37:52 +02:00
|
|
|
|
|
|
|
ifndef CONFIG_GNRC_PKTBUF_SIZE
|
|
|
|
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=4096
|
|
|
|
endif
|