2020-04-26 13:02:21 +02:00
|
|
|
|
# Copyright (c) 2020 Freie Universitaet Berlin
|
|
|
|
|
#
|
|
|
|
|
# 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-01-05 13:52:25 +01:00
|
|
|
|
|
|
|
|
|
if TEST_KCONFIG
|
|
|
|
|
|
|
|
|
|
choice
|
|
|
|
|
bool "RN2XX3 LoRa module"
|
|
|
|
|
optional
|
|
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
|
depends on HAS_PERIPH_UART
|
|
|
|
|
|
|
|
|
|
config MODULE_RN2483
|
|
|
|
|
bool "RN2483"
|
|
|
|
|
select MODULE_RN2XX3
|
|
|
|
|
|
|
|
|
|
config MODULE_RN2903
|
|
|
|
|
bool "RN2903"
|
|
|
|
|
select MODULE_RN2XX3
|
|
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
|
config MODULE_RN2XX3
|
|
|
|
|
bool
|
|
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
|
depends on HAS_PERIPH_UART
|
|
|
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
|
select MODULE_PERIPH_UART
|
|
|
|
|
select MODULE_FMT
|
2021-11-02 15:23:51 +01:00
|
|
|
|
select MODULE_ZTIMER
|
|
|
|
|
select MODULE_ZTIMER_MSEC
|
2021-01-05 13:52:25 +01:00
|
|
|
|
|
|
|
|
|
endif # TEST_KCONFIG
|
|
|
|
|
|
2020-11-24 17:26:31 +01:00
|
|
|
|
config USEMODULE_RN2XX3
|
|
|
|
|
bool
|
|
|
|
|
select HAVE_LORAWAN
|
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
|
menuconfig KCONFIG_USEMODULE_RN2XX3
|
2020-04-26 13:02:21 +02:00
|
|
|
|
bool "Configure RN2XX3 driver"
|
2020-08-31 09:33:35 +02:00
|
|
|
|
depends on USEMODULE_RN2XX3
|
2020-04-26 13:02:21 +02:00
|
|
|
|
help
|
|
|
|
|
Configure the RN2XX3 driver using Kconfig.
|
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
|
if KCONFIG_USEMODULE_RN2XX3
|
2020-04-26 13:02:21 +02:00
|
|
|
|
|
|
|
|
|
config RN2XX3_DEFAULT_SLEEP
|
|
|
|
|
int "Sleep duration in milliseconds [ms]"
|
|
|
|
|
range 100 $(UINT32_MAX)
|
|
|
|
|
default 5000
|
|
|
|
|
help
|
|
|
|
|
Set the sleep duration (in ms).
|
|
|
|
|
The value should be greater than RN2XX3_SLEEP_MIN (100 ms)
|
|
|
|
|
|
2020-12-07 16:35:53 +01:00
|
|
|
|
config RN2XX3_DEFAULT_AR
|
|
|
|
|
bool "Enable automatic reply"
|
|
|
|
|
help
|
|
|
|
|
Enable/disable Automatic Reply (AR) for rn2xx3 module. By enabling the
|
|
|
|
|
automatic reply, the module will transmit a packet without a payload
|
|
|
|
|
immediately after a confirmed downlink is received, or when the
|
|
|
|
|
Frame Pending bit has been set by the server. Refer RN2483 LoRa™
|
|
|
|
|
Technology Module Command Reference User’s Guide for more information.
|
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
|
endif # KCONFIG_USEMODULE_RN2XX3
|