Hardware Abstraction Layer, permitting any LoRa application to use any LoRa radio chip

Dependents:   alarm_slave alarm_master lora_p2p lorawan1v1 ... more

radio chip selection

Radio chip driver is not included, allowing choice of radio device.
If you're using SX1272 or SX1276, then import sx127x driver into your program.
if you're using SX1261 or SX1262, then import sx126x driver into your program.
if you're using SX1280, then import sx1280 driver into your program.
if you're using LR1110, then import LR1110 driver into your program.
If you're using NAmote72 or Murata discovery, then you must import only sx127x driver.
If you're using Type1SJ select target DISCO_L072CZ_LRWAN1 and import sx126x driver into your program.

Pin assigned to arduino LoRa radio shield form-factor

Revision:
2:c321b5919516
Parent:
1:e79b0a55135f
Child:
3:122af639cf0b
--- a/radio_sx126x.cpp	Mon Jul 16 11:15:59 2018 -0700
+++ b/radio_sx126x.cpp	Tue Jul 17 16:18:06 2018 -0700
@@ -13,9 +13,7 @@
     DigitalOut antswPower(D8);
     AnalogIn xtalSel(A3);
 
-    DigitalIn chipType(A2);
-    #define CHIP_TYPE_SX1262        0
-    #define CHIP_TYPE_SX1261        1
+    DigitalIn Radio::chipType(A2);
 
     #define PINNAME_NRST            A0