Fork for LoDev

Revision:
65:b2d98328fcba
Parent:
64:b721e6ab656a
Child:
90:d98572047c9c
--- a/sx1276/sx1276-mbed-hal.cpp	Fri Jun 30 16:08:05 2017 +0200
+++ b/sx1276/sx1276-mbed-hal.cpp	Tue Jul 11 13:32:34 2017 +0200
@@ -19,6 +19,10 @@
  * 30826 Garbsen (Hannover) Germany
  */
 
+#ifdef ARDUINO
+ #include "arduino-mbed.h"
+#endif
+
 #include "sx1276-mbed-hal.h"
 
 
@@ -56,7 +60,7 @@
         default:
             break;
     }
-    _spi = new SPI(mosi, miso, sclk );
+    _spi = new XSPI(mosi, miso, sclk );
     _nss = new DigitalOut(nss);
     
     _reset = new DigitalInOut(reset);
@@ -371,6 +375,8 @@
 
 bool SX1276Generic::CheckRfFrequency( uint32_t frequency )
 {
+    if (frequency > 1200000)
+        return false;
     // Implement check. Currently all frequencies are supported
     return true;
 }