1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

socket_zep: add Kconfig

This commit is contained in:
Leandro Lanzieri 2021-10-08 12:00:45 +02:00 committed by Benjamin Valentin
parent 2a12820dc6
commit c5f9d50a57
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,17 @@
menuconfig MODULE_SOCKET_ZEP
bool "Socket-based ZEP"
depends on CPU_MODEL_NATIVE
depends on TEST_KCONFIG
select MODULE_IOLIST
select MODULE_CHECKSUM
select MODULE_RANDOM
select MODULE_IEEE802154
help
UDP socket-based IEEE 802.15.4 device over ZEP
config MODULE_SOCKET_ZEP_HELLO
bool "Send a dummy HELLO packet on startup"
depends on MODULE_SOCKET_ZEP
help
Say y to send a dummy HELLO packet on startup. This is used to make
dispatchers aware of the node.

View File

@ -18,6 +18,7 @@ rsource "ncv7356/Kconfig"
rsource "pn532/Kconfig"
rsource "rn2xx3/Kconfig"
rsource "slipdev/Kconfig"
rsource "$(RIOTCPU)/native/socket_zep/Kconfig"
rsource "sx126x/Kconfig"
rsource "sx127x/Kconfig"
rsource "tja1042/Kconfig"

View File

@ -24,6 +24,10 @@ ifeq ($(BOARD), native)
ZEP_PORT_BASE ?= 17754
TERMFLAGS += -z [::1]:$(ZEP_PORT_BASE)
USEMODULE += socket_zep
# the same for Kconfig
ifeq (1,$(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native
endif
endif
USEMODULE += od

View File

@ -0,0 +1,6 @@
CONFIG_MODULE_SOCKET_ZEP=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_TINYMT32=y