From ed22d624e4ffa99fcf6cebc1e721543595ddd962 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 9 Mar 2022 17:07:45 +0100 Subject: [PATCH] drivers/netdev: model IEEE 802.15.4 in Kconfig --- drivers/netdev/Kconfig | 68 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 60 insertions(+), 8 deletions(-) diff --git a/drivers/netdev/Kconfig b/drivers/netdev/Kconfig index 8cd2bf8dd7..d7d8d14dce 100644 --- a/drivers/netdev/Kconfig +++ b/drivers/netdev/Kconfig @@ -13,16 +13,9 @@ config MODULE_NETDEV_DEFAULT Say y to enable the drivers for the default network devices present on your platform. -menu "IEEE 802.15.4 Device Drivers" - visible if MODULE_NETDEV_IEEE802154 - -config MODULE_NETDEV_IEEE802154_RX_TIMESTAMP - bool "Timestamp received frames" - -endmenu # IEEE 802.15.4 Device Drivers - config MODULE_NETDEV bool + prompt "Use netdev interface for networking devices" if HAVE_NON_NETDEV_INTERFACE select MODULE_EUI_PROVIDER help Network device driver API. Netdev is a generic low-level network @@ -36,9 +29,68 @@ config MODULE_NETDEV_ETH help Common code for netdev ethernet drivers. +if MODULE_NETDEV + +config NETDEV_REGISTER_SIGNAL + bool "Signal when a network device is registered" + +menu "IEEE 802.15.4 Device Drivers" + visible if MODULE_NETDEV_IEEE802154 + +config MODULE_NETDEV_IEEE802154_RX_TIMESTAMP + bool "Timestamp received frames" + +endmenu # IEEE 802.15.4 Device Drivers + +config MODULE_NETDEV_IEEE802154 + bool + select MODULE_NETDEV_REGISTER + select MODULE_IEEE802154 + select MODULE_RANDOM + help + Common code for netdev IEEE 802.15.4 drivers. + +config MODULE_NETDEV_IEEE802154_OQPSK + bool + help + Support for OQPSK modulation in netdev IEEE 802.15.4. + +config MODULE_NETDEV_IEEE802154_MR_FSK + bool + help + Support for MR-FSK modulation in netdev IEEE 802.15.4. + +config MODULE_NETDEV_IEEE802154_MR_OFDM + bool + help + Support for MR-OFDM modulation in netdev IEEE 802.15.4. + +config MODULE_NETDEV_IEEE802154_MR_OQPSK + bool + help + Support for MR-OQPSK modulation in netdev IEEE 802.15.4. + +config MODULE_NETDEV_IEEE802154_MULTIMODE + bool + help + Allow for multiple physical layer modes. + config MODULE_NETDEV_REGISTER bool help Network device registration. +endif # MODULE_NETDEV + endif # TEST_KCONFIG + +config HAVE_NON_NETDEV_INTERFACE + bool + help + Indicates that a non-netdev interface is exposed by selected drivers. + +config HAVE_IEE802154_RADIO_HAL_INTERFACE + bool + select HAVE_NON_NETDEV_INTERFACE + help + Indicates that a device driver implements the IEEE 802.15.4 radio HAL interface.