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 WakeUp by
Diff: WakeUp.h
- Revision:
- 18:e71f388710b7
- Parent:
- 10:c41bc9154a7c
- Child:
- 19:c1fc9bb48d2b
--- a/WakeUp.h Wed Apr 22 20:36:13 2015 +0000
+++ b/WakeUp.h Thu Jun 25 08:18:26 2015 +0000
@@ -90,9 +90,16 @@
*/
static void calibrate(void);
+ /**
+ * Time until the next wakeup
+ *
+ * Give the time in ms until the next wakeup event is scheduled.
+ */
+ static uint32_t timeRemaining(void);
private:
static FunctionPointer callback;
static void irq_handler(void);
static float cycles_per_ms;
+ static uint32_t timeoutSet;
};
\ No newline at end of file
