2017-06-26 17:12:42 +02:00
|
|
|
export APPLICATION = can_trx
|
2023-05-10 10:36:12 +02:00
|
|
|
include ../Makefile.sys_common
|
2017-06-26 17:12:42 +02:00
|
|
|
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2017-06-26 17:12:42 +02:00
|
|
|
USEMODULE += ps
|
|
|
|
|
|
|
|
USEMODULE += can_trx
|
|
|
|
|
2019-10-29 13:22:19 +01:00
|
|
|
TRX_TO_BUILD ?= tja1042
|
2017-06-26 17:12:42 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter tja1042,$(TRX_TO_BUILD)))
|
2018-01-18 09:53:26 +01:00
|
|
|
USEMODULE += tja1042
|
2019-10-29 13:22:19 +01:00
|
|
|
TJA1042_STB_PIN ?= GPIO_PIN\(0,0\)
|
|
|
|
|
|
|
|
CFLAGS += -DTJA1042_STB_PIN=$(TJA1042_STB_PIN)
|
2018-01-18 09:53:26 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter ncv7356,$(TRX_TO_BUILD)))
|
|
|
|
USEMODULE += ncv7356
|
2019-10-29 13:22:19 +01:00
|
|
|
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)
|
2017-06-26 17:12:42 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|