2021-03-11 17:28:33 +01:00
|
|
|
# Copyright (c) 2021 Inria
|
2021-06-30 13:34:20 +02:00
|
|
|
# Copyright (c) 2021 HAW Hamburg
|
2021-03-11 17:28:33 +01:00
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
|
2021-11-18 17:12:34 +01:00
|
|
|
menuconfig MODULE_SX126X
|
2021-06-30 13:34:20 +02:00
|
|
|
bool
|
2021-11-18 17:12:34 +01:00
|
|
|
prompt "SX1261/2/8 and LLCC68 LoRa radio driver" if !(HAVE_SX126X && MODULE_NETDEV_DEFAULT)
|
|
|
|
default y if (HAVE_SX126X && MODULE_NETDEV_DEFAULT)
|
|
|
|
depends on TEST_KCONFIG
|
|
|
|
depends on HAS_PERIPH_SPI
|
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
depends on HAS_PERIPH_GPIO_IRQ
|
2022-08-09 14:58:36 +02:00
|
|
|
select MODULE_IOLIST
|
2023-04-13 10:42:43 +02:00
|
|
|
select MODULE_LORA
|
2022-08-09 14:58:36 +02:00
|
|
|
select MODULE_NETDEV_LEGACY_API
|
2021-11-18 17:12:34 +01:00
|
|
|
select MODULE_PERIPH_GPIO
|
2023-01-24 10:19:46 +01:00
|
|
|
select MODULE_PERIPH_GPIO_IRQ
|
2021-11-18 17:12:34 +01:00
|
|
|
select MODULE_PERIPH_SPI
|
2021-06-30 13:34:20 +02:00
|
|
|
select PACKAGE_DRIVER_SX126X
|
|
|
|
|
2023-01-24 10:19:46 +01:00
|
|
|
if MODULE_SX126X
|
|
|
|
|
2021-11-18 17:12:34 +01:00
|
|
|
choice
|
|
|
|
bool "Radio variant"
|
|
|
|
default MODULE_SX1261 if HAVE_SX1261
|
|
|
|
default MODULE_SX1262 if HAVE_SX1262
|
|
|
|
default MODULE_SX1268 if HAVE_SX1268
|
|
|
|
default MODULE_LLCC68 if HAVE_LLCC68
|
|
|
|
default MODULE_SX126X_STM32WL if HAVE_SX126X_STM32WL
|
2021-06-30 13:34:20 +02:00
|
|
|
|
|
|
|
config MODULE_SX1261
|
|
|
|
bool "SX1261"
|
|
|
|
|
|
|
|
config MODULE_SX1262
|
|
|
|
bool "SX1262"
|
|
|
|
|
|
|
|
config MODULE_SX1268
|
|
|
|
bool "SX1268"
|
|
|
|
|
|
|
|
config MODULE_LLCC68
|
|
|
|
bool "LLCC68"
|
|
|
|
|
2021-07-07 13:25:20 +02:00
|
|
|
config MODULE_SX126X_STM32WL
|
|
|
|
bool "SX126X-STM32WL"
|
|
|
|
|
2021-11-18 17:12:34 +01:00
|
|
|
endchoice
|
|
|
|
|
2023-01-24 10:19:46 +01:00
|
|
|
config MODULE_SX126X_RF_SWITCH
|
2023-01-25 08:47:26 +01:00
|
|
|
bool
|
2023-01-24 10:19:46 +01:00
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
|
|
|
|
endif # MODULE_SX126X
|
|
|
|
|
2021-11-18 17:12:34 +01:00
|
|
|
config HAVE_SX1261
|
|
|
|
bool
|
|
|
|
select HAVE_SX126X
|
|
|
|
help
|
|
|
|
Indicates that an sx1261 transceiver is present.
|
|
|
|
|
|
|
|
config HAVE_SX1262
|
|
|
|
bool
|
|
|
|
select HAVE_SX126X
|
|
|
|
help
|
|
|
|
Indicates that an sx1262 transceiver is present.
|
|
|
|
|
|
|
|
config HAVE_SX1268
|
|
|
|
bool
|
|
|
|
select HAVE_SX126X
|
|
|
|
help
|
|
|
|
Indicates that an sx1268 transceiver is present.
|
2021-06-30 13:34:20 +02:00
|
|
|
|
2021-11-18 17:12:34 +01:00
|
|
|
config HAVE_LLCC68
|
|
|
|
bool
|
|
|
|
select HAVE_SX126X
|
|
|
|
help
|
|
|
|
Indicates that an llcc68 transceiver is present.
|
|
|
|
|
|
|
|
config HAVE_SX126X_STM32WL
|
|
|
|
bool
|
|
|
|
select HAVE_SX126X
|
|
|
|
help
|
|
|
|
Indicates that an sx126x_stm32wl transceiver is present.
|
|
|
|
|
|
|
|
config HAVE_SX126X
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that an sx126x transceiver is present.
|