f

Revision:
65:b2d98328fcba
Parent:
64:b721e6ab656a
Child:
102:3e0f7696f4a5
--- a/sx1276/sx1276-mbed-hal.h	Fri Jun 30 16:08:05 2017 +0200
+++ b/sx1276/sx1276-mbed-hal.h	Tue Jul 11 13:32:34 2017 +0200
@@ -21,12 +21,19 @@
 
 #ifndef __SX1276_MBED_HAL_H__
 #define __SX1276_MBED_HAL_H__
+
+
 #include "sx1276.h"
 
 
+#ifdef __MBED__
+#define XSPI	SPI
+#endif
+
 
 /*!
- * Actual implementation of a SX1276 radio, includes some modifications to make it compatible with the MB1 LAS board
+ * Actual implementation of a SX1276 radio, includes some modifications to make it
+ * compatible with the MB1 LAS board
  */
 class SX1276Generic : public SX1276
 {
@@ -51,7 +58,7 @@
     /*!
      * SPI Interface
      */
-    SPI *_spi; // mosi, miso, sclk
+    XSPI *_spi; // mosi, miso, sclk
     DigitalOut *_nss;
     
     /*!