f12d36a51e
Move the `REQUIRES_FULL_LIBC` dependency from `config LORA` to
`config LORAWAN`. The commit that added the `select` (f590d4fa
) mentions
that this is required by `loramac-node`, which is only used by LoRaWAN,
not the base LoRa code.
This results in small FLASH savings when compiling the samples, but can
result in larger savings in more complex applications:
```
// With REQUIRES_FULL_LIBC
west build -b 96b_wistrio zephyr/samples/drivers/lora/send/
[162/162] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 37708 B 128 KB 28.77%
SRAM: 8832 B 32 KB 26.95%
IDT_LIST: 0 GB 2 KB 0.00%
// Without REQUIRES_FULL_LIBC
[181/181] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 37444 B 128 KB 28.57%
SRAM: 8832 B 32 KB 26.95%
IDT_LIST: 0 GB 2 KB 0.00%
```
Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
# LoRaWAN configuration options
|
|
|
|
# Copyright (c) 2020 Manivannan Sadhasivam <mani@kernel.org>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig LORAWAN
|
|
bool "LoRaWAN support [EXPERIMENTAL]"
|
|
depends on LORA
|
|
select REQUIRES_FULL_LIBC
|
|
select HAS_SEMTECH_LORAMAC
|
|
select HAS_SEMTECH_SOFT_SE
|
|
select EXPERIMENTAL
|
|
help
|
|
This option enables LoRaWAN support.
|
|
|
|
if LORAWAN
|
|
|
|
module = LORAWAN
|
|
module-str = lorawan
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
config LORAWAN_SYSTEM_MAX_RX_ERROR
|
|
int "LoRaWAN System Max Rx Error"
|
|
default 20
|
|
help
|
|
System Max Rx timing error value in ms to be used by LoRaWAN stack
|
|
for calculating the RX1/RX2 window timing.
|
|
|
|
choice LORAMAC_REGION
|
|
prompt "LoRaWAN Region Selection"
|
|
default LORAMAC_REGION_UNKNOWN
|
|
help
|
|
Select the LoRaWAN region.
|
|
|
|
config LORAMAC_REGION_UNKNOWN
|
|
bool "Unknown region"
|
|
|
|
config LORAMAC_REGION_AS923
|
|
bool "Asia 923MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_AU915
|
|
bool "Australia 915MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_CN470
|
|
bool "China 470MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_CN779
|
|
bool "China 779MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_EU433
|
|
bool "Europe 433MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_EU868
|
|
bool "Europe 868MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_KR920
|
|
bool "South Korea 920MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_IN865
|
|
bool "India 865MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_US915
|
|
bool "North America 915MHz Frequency band"
|
|
|
|
config LORAMAC_REGION_RU864
|
|
bool "Russia 864MHz Frequency band"
|
|
|
|
endchoice
|
|
|
|
rsource "nvm/Kconfig"
|
|
|
|
endif # LORAWAN
|