Skip to content

Commit

Permalink
drivers/nrf802154: remove nrf802154_rf_netdev_legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
jia200x committed Jul 8, 2021
1 parent eacbaf5 commit 670782a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 565 deletions.
4 changes: 1 addition & 3 deletions cpu/nrf52/Makefile.dep
Expand Up @@ -4,9 +4,7 @@ ifneq (,$(filter nrf802154,$(USEMODULE)))
FEATURES_REQUIRED += periph_timer
FEATURES_REQUIRED += radio_nrf802154
USEMODULE += luid
ifneq (,$(filter nrf802154_netdev_legacy,$(USEMODULE)))
USEMODULE += netdev_ieee802154
else ifneq (,$(filter netdev,$(USEMODULE)))
ifneq (,$(filter netdev,$(USEMODULE)))
USEMODULE += netdev_ieee802154_submac
endif
endif
Expand Down
6 changes: 0 additions & 6 deletions cpu/nrf52/include/nrf802154.h
Expand Up @@ -36,14 +36,10 @@
#ifndef NRF802154_H
#define NRF802154_H

#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"
#endif
#else
#include "net/netdev/ieee802154.h"
#endif

#ifdef __cplusplus
extern "C" {
Expand All @@ -58,8 +54,6 @@ extern "C" {
typedef struct {
#if IS_USED(MODULE_NETDEV_IEEE802154_SUBMAC)
netdev_ieee802154_submac_t netdev; /**< netdev SubMAC descriptor */
#elif IS_USED(MODULE_NRF802154_NETDEV_LEGACY)
netdev_ieee802154_t netdev; /**< ieee802154 device descriptor */
#endif
} nrf802154_t;

Expand Down
7 changes: 0 additions & 7 deletions cpu/nrf52/radio/nrf802154/Makefile
@@ -1,10 +1,3 @@
MODULE = nrf802154

# 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

0 comments on commit 670782a

Please sign in to comment.