contain lorawan with serial_rx enabled

Dependencies:   pulga-lorawan-drv SPI_MX25R Si1133 BME280

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue May 15 13:15:17 2018 +0100
Parent:
17:2fc16c1d6434
Child:
19:6accf37de3ce
Commit message:
Remove usage of DEVICE_SPI and MBED_CONF_APP_LORAWAN_ENABLED flags

mbed-os-example-lorawan project is now CI tested only for targets
which really have lora HW. Therefore DEVICE_SPI and MBED_CONF_APP_LORAWAN_ENABLED
are no longer needed.

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-lorawan

Changed in this revision

lora_radio_helper.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
--- a/lora_radio_helper.h	Fri May 11 07:30:15 2018 +0100
+++ b/lora_radio_helper.h	Tue May 15 13:15:17 2018 +0100
@@ -20,10 +20,6 @@
 #ifndef APP_LORA_RADIO_HELPER_H_
 #define APP_LORA_RADIO_HELPER_H_
 
-#if MBED_CONF_APP_LORAWAN_ENABLED
-
-#ifdef DEVICE_SPI
-
 #include "SX1272_LoRaRadio.h"
 #include "SX1276_LoRaRadio.h"
 
@@ -76,8 +72,4 @@
     #error "Unknown LoRa radio specified (SX1272,SX1276 are valid)"
 #endif
 
-#endif //DEVICE_SPI
-
-#endif //MBED_CONF_APP_LORAWAN_ENABLED
-
 #endif /* APP_LORA_RADIO_HELPER_H_ */
--- a/main.cpp	Fri May 11 07:30:15 2018 +0100
+++ b/main.cpp	Tue May 15 13:15:17 2018 +0100
@@ -16,10 +16,6 @@
  */
 #include <stdio.h>
 
-#if MBED_CONF_APP_LORAWAN_ENABLED
-
-#ifdef DEVICE_SPI
-
 #include "lorawan/LoRaWANInterface.h"
 #include "lorawan/system/lorawan_data_structures.h"
 #include "events/EventQueue.h"
@@ -262,12 +258,4 @@
     }
 }
 
-#endif //DEVICE_SPI
-
-#else
-int main (void)
-{
-    return 0;
-}
-#endif //MBED_CONF_APP_LORAWAN_ENABLED
 // EOF
--- a/mbed_app.json	Fri May 11 07:30:15 2018 +0100
+++ b/mbed_app.json	Tue May 15 13:15:17 2018 +0100
@@ -6,8 +6,6 @@
         },
         "main_stack_size":     { "value": 4096 },
 
-        "lorawan-enabled":     { "value": false},
-
         "lora-spi-mosi":       { "value": "NC" },
         "lora-spi-miso":       { "value": "NC" },
         "lora-spi-sclk":       { "value": "NC" },
@@ -41,8 +39,6 @@
         },
 
         "K64F": {
-            "lorawan-enabled":     true,
-
             "lora-spi-mosi":       "D11",
             "lora-spi-miso":       "D12",
             "lora-spi-sclk":       "D13",
@@ -65,8 +61,6 @@
 
         "DISCO_L072CZ_LRWAN1": {
             "main_stack_size":      1024,
-            "lorawan-enabled":      true,
-
             "lora-radio":          "SX1276",
             "lora-spi-mosi":       "PA_7",
             "lora-spi-miso":       "PA_6",
@@ -90,8 +84,6 @@
 
         "MTB_MURATA_ABZ": {
             "main_stack_size":      1024,
-            "lorawan-enabled":      true,
-
             "lora-radio":          "SX1276",
             "lora-spi-mosi":       "PA_7",
             "lora-spi-miso":       "PA_6",
@@ -114,8 +106,6 @@
         },
 
         "XDOT_L151CC": {
-            "lorawan-enabled":      true,
-
             "lora-radio":           "SX1272",
             "lora-spi-mosi":        "LORA_MOSI",
             "lora-spi-miso":        "LORA_MISO",
@@ -138,8 +128,6 @@
         },
 
         "MTB_MTS_XDOT": {
-            "lorawan-enabled":      true,
-
             "lora-radio":           "SX1272",
             "lora-spi-mosi":        "LORA_MOSI",
             "lora-spi-miso":        "LORA_MISO",
@@ -162,8 +150,6 @@
         },
 
         "LTEK_FF1705": {
-            "lorawan-enabled":      true,
-
             "lora-radio":           "SX1272",
             "lora-spi-mosi":        "LORA_MOSI",
             "lora-spi-miso":        "LORA_MISO",
@@ -186,8 +172,6 @@
         },
 
         "MTS_MDOT_F411RE": {
-            "lorawan-enabled":      true,
-
             "lora-radio":           "SX1272",
             "lora-spi-mosi":        "LORA_MOSI",
             "lora-spi-miso":        "LORA_MISO",
@@ -210,8 +194,6 @@
         },
 
         "MTB_ADV_WISE_1510": {
-            "lorawan-enabled":      true,
-
             "lora-radio":           "SX1276",
             "lora-spi-mosi":        "SPI_RF_MOSI",
             "lora-spi-miso":        "SPI_RF_MISO",
@@ -234,8 +216,6 @@
         },
 
         "MTB_RAK811": {
-            "lorawan-enabled":     true,
-
             "lora-radio":          "SX1276",
             "lora-spi-mosi":       "SPI_RF_MOSI",
             "lora-spi-miso":       "SPI_RF_MISO",