Skip to content

Commit 4a6e33f

Browse files
committed
drivers: Make general IEEE 802.15.4 driver part of netdev
1 parent 0d33a00 commit 4a6e33f

File tree

16 files changed

+1283
-567
lines changed

16 files changed

+1283
-567
lines changed

Makefile.dep

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ ifneq (,$(filter cc110x_ng,$(USEMODULE)))
7272
endif
7373

7474
ifneq (,$(filter cc2420,$(USEMODULE)))
75-
USEMODULE += transceiver
75+
USEMODULE += netdev_802154
7676
USEMODULE += ieee802154
7777
endif
7878

@@ -96,6 +96,10 @@ ifneq (,$(filter ccn_lite,$(USEMODULE)))
9696
USEMODULE += crypto
9797
endif
9898

99+
ifneq (,$(filter netdev_802154,$(USEMODULE)))
100+
USEMODULE += netdev_base
101+
endif
102+
99103
ifneq (,$(filter rgbled,$(USEMODULE)))
100104
USEMODULE += color
101105
endif

boards/telosb/Makefile.include

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ export INCLUDES += -I$(RIOTCPU)/msp430-common/include -I$(RIOTBOARD)/$(BOARD)/in
2626
export OFLAGS = -O ihex
2727

2828
ifneq (,$(filter defaulttransceiver,$(USEMODULE)))
29-
USEMODULE += cc2420
30-
USEMODULE += transceiver
29+
USEMODULE += cc2420
30+
ifeq (,$(filter netdev_base,$(USEMODULE)))
31+
USEMODULE += transceiver
32+
endif
3133
endif
3234

3335
export UNDEF += $(BINDIR)msp430_common/startup.o

boards/wsn430-v1_4/Makefile.dep

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
USEMODULE += msp430_common
22

33
ifneq (,$(filter defaulttransceiver,$(USEMODULE)))
4-
USEMODULE += cc2420
5-
USEMODULE += transceiver
4+
USEMODULE += cc2420
5+
ifeq (,$(filter netdev_base,$(USEMODULE)))
6+
USEMODULE += transceiver
7+
endif
68
endif

boards/z1/Makefile.include

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ export TERMFLAGS += -p "$(PORT)"
2626
export INCLUDES += -I $(RIOTCPU)/msp430-common/include -I$(RIOTBOARD)/$(BOARD)/include -I$(RIOTBASE)/drivers/cc2420/include -I$(RIOTBASE)/sys/net/include
2727

2828
ifneq (,$(filter defaulttransceiver,$(USEMODULE)))
29-
ifeq (,$(filter cc2240,$(USEMODULE)))
30-
USEMODULE += cc2420
31-
endif
32-
ifeq (,$(filter transceiver,$(USEMODULE)))
33-
USEMODULE += transceiver
34-
endif
29+
USEMODULE += cc2420
30+
ifeq (,$(filter netdev_base,$(USEMODULE)))
31+
USEMODULE += transceiver
32+
endif
3533
endif
3634

3735
export UNDEF += $(BINDIR)msp430_common/startup.o

drivers/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@ endif
4343
ifneq (,$(filter netdev_base,$(USEMODULE)))
4444
DIRS += netdev/base
4545
endif
46+
ifneq (,$(filter netdev_802154,$(USEMODULE)))
47+
DIRS += netdev/802154
48+
endif
4649

4750
include $(RIOTBASE)/Makefile.base

0 commit comments

Comments
 (0)