mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
15 lines
345 B
Makefile
15 lines
345 B
Makefile
|
ifneq (,$(filter native,$(BOARD)))
|
||
|
CAN_DRIVER ?= PERIPH_CAN
|
||
|
endif
|
||
|
|
||
|
# define the CAN driver you want to use here
|
||
|
CAN_DRIVER ?= MCP2515
|
||
|
|
||
|
ifeq ($(CAN_DRIVER), PERIPH_CAN)
|
||
|
FEATURES_REQUIRED += periph_can
|
||
|
else ifeq ($(CAN_DRIVER), MCP2515)
|
||
|
USEMODULE += mcp2515
|
||
|
else ifeq ($(CAN_DRIVER), CAN_ALT)
|
||
|
# other can modules can be defined here
|
||
|
endif
|