diff --git a/tests/ieee802154_submac/Makefile b/tests/ieee802154_submac/Makefile index 198d60d39e..1975e1bcc0 100644 --- a/tests/ieee802154_submac/Makefile +++ b/tests/ieee802154_submac/Makefile @@ -6,6 +6,7 @@ BOARD_WHITELIST := \ arduino-nano-33-ble \ cc2538dk \ feather-nrf52840 \ + native \ nrf52840dk \ nrf52840dongle \ nrf52840-mdk \ @@ -29,6 +30,12 @@ USEMODULE += ieee802154 USEMODULE += ieee802154_submac USEMODULE += ztimer_usec +ifeq ($(BOARD), native) + ZEP_PORT_BASE ?= 17754 + TERMFLAGS += -z [::1]:$(ZEP_PORT_BASE) + USEMODULE += socket_zep +endif + CFLAGS += -DEVENT_THREAD_MEDIUM_STACKSIZE=1024 include $(RIOTBASE)/Makefile.include diff --git a/tests/ieee802154_submac/main.c b/tests/ieee802154_submac/main.c index 0e25a04279..9c03f9eb4f 100644 --- a/tests/ieee802154_submac/main.c +++ b/tests/ieee802154_submac/main.c @@ -183,6 +183,9 @@ static ieee802154_dev_t *_reg_callback(ieee802154_dev_type_t type, void *opaque) case IEEE802154_DEV_TYPE_NRF802154: printf("nrf52840"); break; + case IEEE802154_DEV_TYPE_SOCKET_ZEP: + printf("socket_zep"); + break; } puts(".");