Steven Osborn / SX1276RonothLib

Dependents:   LoDev_RXTX

Files at this revision

API Documentation at this revision

Comitter:
Helmut Tschemernjak
Date:
Tue Feb 20 14:56:20 2018 +0100
Parent:
108:3d7cfa8b8519
Child:
110:e04a263e272d
Commit message:
Switched to LowPowerTimeout when available, this avoids
deepsleep locks due to regular timers being active

Changed in this revision

sx1276/sx1276-mbed-hal.h Show annotated file Show diff for this revision Revisions of this file
--- 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: