mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
16df27c51d
This allows including C headers from C++. It sadly reduced the diagnostics on C++ code as well, were there warning may make sense as unintended side effect. We may be able to drop that later on, when more C APIs are properly wrapped in native C++ APIs, so that C headers do no longer need to be compatible with C++ compilers.
29 lines
627 B
Makefile
29 lines
627 B
Makefile
export APPLICATION = can_trx
|
|
include ../Makefile.tests_common
|
|
|
|
USEMODULE += shell
|
|
USEMODULE += shell_cmds_default
|
|
USEMODULE += ps
|
|
|
|
USEMODULE += can_trx
|
|
|
|
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
|
|
|
|
include $(RIOTBASE)/Makefile.include
|