mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #14951 from aabadie/pr/cpu/cc2538_cleanup_radio
cpu/cc2538/radio: only build required files
This commit is contained in:
commit
75132e47ff
@ -1,3 +1,15 @@
|
||||
MODULE = cc2538_rf
|
||||
|
||||
SRC = \
|
||||
cc2538_rf.c \
|
||||
cc2538_rf_getset.c \
|
||||
cc2538_rf_internal.c \
|
||||
#
|
||||
|
||||
ifneq (,$(filter ieee802154_radio_hal,$(USEMODULE)))
|
||||
SRC += cc2538_rf_radio_ops.c
|
||||
else
|
||||
SRC += cc2538_rf_netdev.c
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
@ -31,8 +31,6 @@
|
||||
#define ENABLE_DEBUG (0)
|
||||
#include "debug.h"
|
||||
|
||||
#if !IS_USED(MODULE_IEEE802154_RADIO_HAL)
|
||||
|
||||
/* Reference pointer for the IRQ handler */
|
||||
static netdev_t *_dev;
|
||||
|
||||
@ -422,6 +420,3 @@ const netdev_driver_t cc2538_rf_driver = {
|
||||
.isr = _isr,
|
||||
.init = _init,
|
||||
};
|
||||
#else
|
||||
int dont_be_pedantic;
|
||||
#endif /* MODULE_IEEE802154_RADIO_HAL */
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
#include "net/ieee802154/radio.h"
|
||||
|
||||
#if IS_USED(MODULE_IEEE802154_RADIO_HAL)
|
||||
static const ieee802154_radio_ops_t cc2538_rf_ops;
|
||||
|
||||
ieee802154_dev_t cc2538_rf_dev = {
|
||||
@ -487,6 +486,3 @@ static const ieee802154_radio_ops_t cc2538_rf_ops = {
|
||||
.set_csma_params = _set_csma_params,
|
||||
.set_rx_mode = _set_rx_mode,
|
||||
};
|
||||
#else
|
||||
int dont_be_pedantic;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user