2021-01-07 13:54:47 +01:00
|
|
|
# Copyright (c) 2021 HAW Hamburg
|
|
|
|
#
|
|
|
|
# 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-25 10:37:33 +01:00
|
|
|
menuconfig MODULE_SX127X
|
2022-03-02 14:04:01 +01:00
|
|
|
bool
|
|
|
|
prompt "Semtech SX1272 and SX1276 radios driver" if !(MODULE_NETDEV_DEFAULT && HAVE_SX127X)
|
|
|
|
default y if (MODULE_NETDEV_DEFAULT && HAVE_SX127X)
|
2021-11-25 10:37:33 +01:00
|
|
|
depends on TEST_KCONFIG
|
2021-01-07 13:54:47 +01:00
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
depends on HAS_PERIPH_GPIO_IRQ
|
|
|
|
depends on HAS_PERIPH_SPI
|
|
|
|
depends on HAS_PERIPH_TIMER
|
2022-08-09 14:58:36 +02:00
|
|
|
select MODULE_IOLIST
|
|
|
|
select MODULE_LORA
|
|
|
|
select MODULE_NETDEV_LEGACY_API
|
2021-11-25 10:37:33 +01:00
|
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
select MODULE_PERIPH_GPIO_IRQ
|
|
|
|
select MODULE_PERIPH_SPI
|
2022-08-09 14:58:36 +02:00
|
|
|
select MODULE_PERIPH_SPI_GPIO_MODE if HAS_PERIPH_SPI_GPIO_MODE
|
2021-11-25 10:37:33 +01:00
|
|
|
select MODULE_ZTIMER
|
|
|
|
select MODULE_ZTIMER_MSEC
|
2021-01-07 13:54:47 +01:00
|
|
|
help
|
|
|
|
Only LoRa long range modem is supported at the moment.
|
|
|
|
|
2022-03-02 14:04:01 +01:00
|
|
|
choice SX127X_VARIANT
|
2021-11-25 10:37:33 +01:00
|
|
|
bool "Radio variant"
|
|
|
|
depends on MODULE_SX127X
|
|
|
|
default MODULE_SX1272 if HAVE_SX1272
|
|
|
|
default MODULE_SX1276 if HAVE_SX1276
|
|
|
|
|
2021-01-07 13:54:47 +01:00
|
|
|
config MODULE_SX1272
|
|
|
|
bool "SX1272"
|
|
|
|
|
|
|
|
config MODULE_SX1276
|
|
|
|
bool "SX1276"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2021-11-25 10:37:33 +01:00
|
|
|
config HAVE_SX1272
|
2021-01-07 13:54:47 +01:00
|
|
|
bool
|
2021-11-25 10:37:33 +01:00
|
|
|
select HAVE_SX127X
|
|
|
|
help
|
|
|
|
Indicates that an sx1272 radio is present.
|
2021-01-07 13:54:47 +01:00
|
|
|
|
2021-11-25 10:37:33 +01:00
|
|
|
config HAVE_SX1276
|
|
|
|
bool
|
|
|
|
select HAVE_SX127X
|
|
|
|
help
|
|
|
|
Indicates that an sx1276 radio is present.
|
2021-01-07 13:54:47 +01:00
|
|
|
|
2021-11-25 10:37:33 +01:00
|
|
|
config HAVE_SX127X
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that an sx127x radio is present.
|