1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-16 18:12:45 +01:00
RIOT/cpu/cc2538/radio/Makefile
Leandro Lanzieri f0e7dfdf76
cpu/cc2538/radio: use driver specific legacy pseudomodule
This introduces the cc2538_rf_netdev_legacy pseudomodule that switches
to the netdev-based implementation of the cc2538 radio driver.
2021-03-10 14:18:12 +01:00

17 lines
328 B
Makefile

MODULE = cc2538_rf
SRC = \
cc2538_rf.c \
cc2538_rf_getset.c \
cc2538_rf_internal.c \
#
# use netdev implementation when legacy is explicitly enabled
ifneq (,$(filter cc2538_rf_netdev_legacy,$(USEMODULE)))
SRC += cc2538_rf_netdev.c
else
SRC += cc2538_rf_radio_ops.c
endif
include $(RIOTBASE)/Makefile.base