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

drivers/sx126x: Fix kconfig modeling

This commit is contained in:
MrKevinWeiss 2023-01-24 10:19:46 +01:00
parent 7157ff3ffc
commit bb0efa89d1
No known key found for this signature in database
GPG Key ID: 4B69974722CBEEAE

View File

@ -16,12 +16,14 @@ menuconfig MODULE_SX126X
select MODULE_IOLIST
select MODULE_NETDEV_LEGACY_API
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_GPIO_IRQ
select MODULE_PERIPH_SPI
select PACKAGE_DRIVER_SX126X
if MODULE_SX126X
choice
bool "Radio variant"
depends on MODULE_SX126X
default MODULE_SX1261 if HAVE_SX1261
default MODULE_SX1262 if HAVE_SX1262
default MODULE_SX1268 if HAVE_SX1268
@ -30,25 +32,30 @@ choice
config MODULE_SX1261
bool "SX1261"
select MODULE_PERIPH_GPIO_IRQ
config MODULE_SX1262
bool "SX1262"
select MODULE_PERIPH_GPIO_IRQ
config MODULE_SX1268
bool "SX1268"
select MODULE_PERIPH_GPIO_IRQ
config MODULE_LLCC68
bool "LLCC68"
select MODULE_PERIPH_GPIO_IRQ
config MODULE_SX126X_STM32WL
bool "SX126X-STM32WL"
endchoice
config MODULE_SX126X_RF_SWITCH
bool "Enable RF switch support"
default y if HAVE_SX126X_RF_SWITCH
depends on MODULE_SX126X
depends on HAS_PERIPH_GPIO
select MODULE_PERIPH_GPIO
endif # MODULE_SX126X
config HAVE_SX1261
bool
select HAVE_SX126X
@ -83,3 +90,8 @@ config HAVE_SX126X
bool
help
Indicates that an sx126x transceiver is present.
config HAVE_SX126X_RF_SWITCH
bool
help
Indicates that an sx126x rf switch pin is wired.