Fork for LoDev
Diff: sx1276/sx1276-mbed-hal.h
- Revision:
- 109:528f37db941f
- Parent:
- 102:3e0f7696f4a5
- Child:
- 111:c47d5224a2d1
--- 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: