Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SX1276GenericLib by
Diff: sx1276/sx1276-mbed-hal.h
- 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; /*!