mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
a7880ab98d
This test app bypasses candll and uses the candev abstraction directly. This has the limitation that you can only use one can driver and one can device, which is in most use cases sufficient.
21 lines
392 B
Makefile
21 lines
392 B
Makefile
include ../Makefile.tests_common
|
|
|
|
USEMODULE += shell
|
|
USEMODULE += can
|
|
USEMODULE += isrpipe
|
|
|
|
# define the CAN driver you want to use here
|
|
CAN_DRIVER ?= native
|
|
|
|
ifeq ($(CAN_DRIVER), PERIPH_CAN)
|
|
# periph_can modules/variables go here
|
|
|
|
else ifeq ($(CAN_DRIVER), CAN_NATIVE)
|
|
# can_native modules/variables go here
|
|
|
|
endif
|
|
|
|
CFLAGS += -DCAN_DRIVER_$(CAN_DRIVER)
|
|
|
|
include $(RIOTBASE)/Makefile.include
|