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:
- 109:528f37db941f
- Parent:
- 102:3e0f7696f4a5
- Child:
- 112:3357f97db844
--- a/sx1276/sx1276-mbed-hal.h Sun Jan 21 11:53:10 2018 +0100 +++ b/sx1276/sx1276-mbed-hal.h Tue Feb 20 14:56:20 2018 +0100 @@ -30,6 +30,11 @@ #define XSPI SPI #endif +#ifdef DEVICE_LOWPOWERTIMER + #define MyTimeout LowPowerTimeout +#else + #define MyTimeout Timeout +#endif /*! * Actual implementation of a SX1276 radio, includes some modifications to make it @@ -74,9 +79,9 @@ /*! * Tx and Rx timers */ - Timeout txTimeoutTimer; - Timeout rxTimeoutTimer; - Timeout rxTimeoutSyncWord; + MyTimeout txTimeoutTimer; + MyTimeout rxTimeoutTimer; + MyTimeout rxTimeoutSyncWord; private: