Oliver Wenzel / Mbed 2 deprecated mbed_amf_controlsystem_iO

Dependencies:   mbed-rtos mbed

Fork of mbed_amf_controlsystem by Matti Borchers

Revision:
0:8a6003b8bb5b
diff -r 000000000000 -r 8a6003b8bb5b Misc/SystemTimer.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Misc/SystemTimer.h	Wed Feb 03 17:19:21 2016 +0000
@@ -0,0 +1,29 @@
+#ifndef SYSTEMTIMER_H_
+#define SYSTEMTIMER_H_
+
+#include "mbed.h"
+
+class SystemTimer {
+
+private:
+
+    uint64_t systemUptimeMillis;
+
+    Ticker systemTicker;
+
+public:
+
+    SystemTimer();
+
+    void systemTickerHandler();
+
+    uint64_t getUptimeMillis();
+
+    bool isTimeoutPassed(uint64_t *timestampMillis, uint32_t timeoutMillis);
+
+
+};
+
+
+
+#endif
\ No newline at end of file