Lora support for the STM B_L072Z_LRWAN1 board out of the box. Also supports HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules.

Dependencies:   BufferedSerial SX1276GenericLib mbed USBDeviceHT

Revision:
9:2f9e4be4d046
Parent:
0:c43b6919ae15
Child:
13:5a32a1922fbc
--- a/PinMap.h	Fri May 19 14:04:56 2017 +0000
+++ b/PinMap.h	Tue May 30 15:49:05 2017 +0000
@@ -8,7 +8,7 @@
 
 #ifdef TARGET_NUCLEO_L476RG
  #define FEATURE_LORA   1
-#elif TARGET_STM32L0
+#elif TARGET_DISCO_L072CZ_LRWAN1
  #define FEATURE_LORA   1
  #define B_L072Z_LRWAN1_LORA    1 // the STM Lora Board
 #endif
@@ -31,7 +31,7 @@
 #define LORA_DIO0       PB_4
 #define LORA_DIO1       PB_1
 #define LORA_DIO2       PB_0
-#define LORA_DIO3       PC_13
+#define LORA_DIO3       (PinName)0x2D //PC_13
 #define LORA_DIO4       PA_5
 #define LORA_DIO5       PA_4
 #define LORA_ANT_RX     PA_1