tests/ieee802154_submac: add support for socket_zep

This commit is contained in:
Benjamin Valentin 2021-10-07 12:34:01 +02:00
parent 17fdf61cbe
commit 82e3aefebf
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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(".");