Skip to content

Commit 5aebfa9

Browse files
committed
[POC] ieee802154_hal: add test application
1 parent 27ae6c3 commit 5aebfa9

File tree

2 files changed

+531
-0
lines changed

2 files changed

+531
-0
lines changed

tests/ieee802154_hal/Makefile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
include ../Makefile.tests_common
2+
3+
DISABLE_MODULE += auto_init_at86rf2xx auto_init_nrf802154
4+
5+
USEMODULE += od
6+
USEMODULE += luid
7+
USEMODULE += ieee802154
8+
USEMODULE += shell
9+
USEMODULE += ps
10+
USEMODULE += event_thread_highest
11+
USEMODULE += event_callback
12+
USEMODULE += xtimer
13+
USEMODULE += ieee802154_radio_hal
14+
15+
CFLAGS += -DEVENT_THREAD_HIGHEST_STACKSIZE=1024
16+
17+
NETDEV ?= 0
18+
19+
CFLAGS += -DNETDEV=$(NETDEV)
20+
21+
# define the driver to be used for selected boards
22+
ifneq (,$(filter samr21-xpro,$(BOARD)))
23+
DRIVER := at86rf233
24+
endif
25+
ifneq (,$(filter iotlab-m3 fox,$(BOARD)))
26+
DRIVER := at86rf231
27+
endif
28+
ifneq (,$(filter nrf52840dk,$(BOARD)))
29+
DRIVER := nrf802154
30+
endif
31+
ifneq (,$(filter cc2538dk,$(BOARD)))
32+
DRIVER := cc2538_rf
33+
endif
34+
35+
# use the at86rf231 as fallback device
36+
DRIVER ?= at86rf231
37+
38+
# include the selected driver
39+
USEMODULE += $(DRIVER)
40+
41+
include $(RIOTBASE)/Makefile.include

0 commit comments

Comments
 (0)