From fe1adbcc8685aba9fa1b21bdc5d82274266ed13f Mon Sep 17 00:00:00 2001 From: Jerome Coutant Date: Fri, 10 Sep 2021 09:02:30 +0200 Subject: [PATCH] Lora drivers: explicit lib requirement --- connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json | 1 + connectivity/drivers/lora/COMPONENT_SX1272/mbed_lib.json | 1 + connectivity/drivers/lora/COMPONENT_SX1276/mbed_lib.json | 1 + connectivity/drivers/lora/TARGET_STM32WL/mbed_lib.json | 1 + connectivity/lorawan/mbed_lib.json | 1 + targets/TARGET_STM/TARGET_STM32WL/README.md | 2 +- 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json b/connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json index 2cce26389e..6fcdf16f05 100644 --- a/connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json +++ b/connectivity/drivers/lora/COMPONENT_SX126X/mbed_lib.json @@ -1,5 +1,6 @@ { "name": "SX126X-lora-driver", + "requires": ["lora"], "config": { "spi-frequency": { "help": "SPI frequency, Default: 16 MHz", diff --git a/connectivity/drivers/lora/COMPONENT_SX1272/mbed_lib.json b/connectivity/drivers/lora/COMPONENT_SX1272/mbed_lib.json index 7182de340a..824c71ee96 100644 --- a/connectivity/drivers/lora/COMPONENT_SX1272/mbed_lib.json +++ b/connectivity/drivers/lora/COMPONENT_SX1272/mbed_lib.json @@ -1,5 +1,6 @@ { "name": "sx1272-lora-driver", + "requires": ["lora"], "config": { "spi-frequency": { "help": "SPI frequency, Default: 8 MHz", diff --git a/connectivity/drivers/lora/COMPONENT_SX1276/mbed_lib.json b/connectivity/drivers/lora/COMPONENT_SX1276/mbed_lib.json index 0033945bec..82bbf8a02d 100644 --- a/connectivity/drivers/lora/COMPONENT_SX1276/mbed_lib.json +++ b/connectivity/drivers/lora/COMPONENT_SX1276/mbed_lib.json @@ -1,5 +1,6 @@ { "name": "sx1276-lora-driver", + "requires": ["lora"], "config": { "spi-frequency": { "help": "SPI frequency, Default: 8 MHz", diff --git a/connectivity/drivers/lora/TARGET_STM32WL/mbed_lib.json b/connectivity/drivers/lora/TARGET_STM32WL/mbed_lib.json index 3d3def0383..f1ebdd18db 100644 --- a/connectivity/drivers/lora/TARGET_STM32WL/mbed_lib.json +++ b/connectivity/drivers/lora/TARGET_STM32WL/mbed_lib.json @@ -1,5 +1,6 @@ { "name": "stm32wl-lora-driver", + "requires": ["lora"], "config": { "buffer-size": { "help": "Max. buffer size the radio can handle, Default: 255 B", diff --git a/connectivity/lorawan/mbed_lib.json b/connectivity/lorawan/mbed_lib.json index 5de19498e9..04201a94c8 100644 --- a/connectivity/lorawan/mbed_lib.json +++ b/connectivity/lorawan/mbed_lib.json @@ -1,5 +1,6 @@ { "name": "lora", + "requires": ["mbedtls", "events"], "config": { "phy": { "help": "LoRa PHY region: EU868, AS923, AU915, CN470, CN779, EU433, IN865, KR920, US915", diff --git a/targets/TARGET_STM/TARGET_STM32WL/README.md b/targets/TARGET_STM/TARGET_STM32WL/README.md index 8415b5a2f0..a85e8473db 100644 --- a/targets/TARGET_STM/TARGET_STM32WL/README.md +++ b/targets/TARGET_STM/TARGET_STM32WL/README.md @@ -50,7 +50,7 @@ Baremetal is supported. mbed_app.json: ``` { - "requires": ["bare-metal", "lora", "stm32wl-lora-driver"] + "requires": ["bare-metal", "stm32wl-lora-driver"] } ```