SX1276GenericLib to support sx1276 bassed LoRa modules, including HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules
Dependents: DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more
Fork of SX1276Lib by
Diff: sx1276/sx1276-mbed-hal.h
- Revision:
- 65:b2d98328fcba
- Parent:
- 64:b721e6ab656a
- Child:
- 102:3e0f7696f4a5
diff -r b721e6ab656a -r b2d98328fcba sx1276/sx1276-mbed-hal.h --- 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; /*!