mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/nrf52/nrf802154: use driver specific legacy pseudomodule
This introduces the nrf802154_netdev_legacy pseudomodule that switches to the netdev-based implementation of the nrf802154 radio driver.
This commit is contained in:
parent
f0e7dfdf76
commit
246391a9fa
@ -4,8 +4,9 @@ ifneq (,$(filter nrf802154,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_timer
|
||||
FEATURES_REQUIRED += radio_nrf802154
|
||||
USEMODULE += luid
|
||||
USEMODULE += netdev_ieee802154
|
||||
ifeq (,$(filter netdev_ieee802154_legacy,$(USEMODULE)))
|
||||
ifneq (,$(filter nrf802154_netdev_legacy,$(USEMODULE)))
|
||||
USEMODULE += netdev_ieee802154
|
||||
else ifneq (,$(filter netdev,$(USEMODULE)))
|
||||
USEMODULE += netdev_ieee802154_submac
|
||||
endif
|
||||
endif
|
||||
|
@ -36,7 +36,7 @@
|
||||
#ifndef NRF802154_H
|
||||
#define NRF802154_H
|
||||
|
||||
#if IS_USED(MODULE_IEEE802154_RADIO_HAL)
|
||||
#if !IS_USED(MODULE_NRF802154_NETDEV_LEGACY)
|
||||
#include "net/ieee802154/radio.h"
|
||||
#if IS_USED(MODULE_NETDEV_IEEE802154_SUBMAC)
|
||||
#include "net/netdev/ieee802154_submac.h"
|
||||
@ -58,7 +58,7 @@ extern "C" {
|
||||
typedef struct {
|
||||
#if IS_USED(MODULE_NETDEV_IEEE802154_SUBMAC)
|
||||
netdev_ieee802154_submac_t netdev; /**< netdev SubMAC descriptor */
|
||||
#elif !IS_USED(MODULE_IEEE802154_RADIO_HAL)
|
||||
#elif IS_USED(MODULE_NRF802154_NETDEV_LEGACY)
|
||||
netdev_ieee802154_t netdev; /**< ieee802154 device descriptor */
|
||||
#endif
|
||||
} nrf802154_t;
|
||||
|
@ -1,9 +1,10 @@
|
||||
MODULE = nrf802154
|
||||
|
||||
ifneq (,$(filter ieee802154_radio_hal,$(USEMODULE)))
|
||||
SRC += nrf802154_radio.c
|
||||
else
|
||||
# use netdev implementation when legacy is explicitly enabled
|
||||
ifneq (,$(filter nrf802154_netdev_legacy,$(USEMODULE)))
|
||||
SRC += nrf802154.c
|
||||
else
|
||||
SRC += nrf802154_radio.c
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
@ -105,6 +105,7 @@ PSEUDOMODULES += newlib
|
||||
PSEUDOMODULES += newlib_gnu_source
|
||||
PSEUDOMODULES += newlib_nano
|
||||
PSEUDOMODULES += nrf24l01p_ng_diagnostics
|
||||
PSEUDOMODULES += nrf802154_netdev_legacy
|
||||
PSEUDOMODULES += openthread
|
||||
PSEUDOMODULES += picolibc
|
||||
PSEUDOMODULES += picolibc_stdout_buffered
|
||||
|
Loading…
Reference in New Issue
Block a user