summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/esp8266/driver/uptime.h17
-rw-r--r--include/msp430fr5969lp/driver/uptime.h17
-rw-r--r--include/posix/driver/uptime.h17
3 files changed, 51 insertions, 0 deletions
diff --git a/include/esp8266/driver/uptime.h b/include/esp8266/driver/uptime.h
new file mode 100644
index 0000000..7da10cb
--- /dev/null
+++ b/include/esp8266/driver/uptime.h
@@ -0,0 +1,17 @@
+#ifndef UPTIME_H
+#define UPTIME_H
+
+#include "c_types.h"
+
+class Uptime {
+ private:
+ Uptime(const Uptime &copy);
+
+ public:
+ Uptime () {}
+ uint32_t get();
+};
+
+extern Uptime uptime;
+
+#endif
diff --git a/include/msp430fr5969lp/driver/uptime.h b/include/msp430fr5969lp/driver/uptime.h
new file mode 100644
index 0000000..f18a7fe
--- /dev/null
+++ b/include/msp430fr5969lp/driver/uptime.h
@@ -0,0 +1,17 @@
+#ifndef UPTIME_H
+#define UPTIME_H
+
+#include <stdint.h>
+
+class Uptime {
+ private:
+ Uptime(const Uptime &copy);
+
+ public:
+ Uptime () {}
+ uint32_t get();
+};
+
+extern Uptime uptime;
+
+#endif
diff --git a/include/posix/driver/uptime.h b/include/posix/driver/uptime.h
new file mode 100644
index 0000000..c92ccf1
--- /dev/null
+++ b/include/posix/driver/uptime.h
@@ -0,0 +1,17 @@
+#ifndef UPTIME_H
+#define UPTIME_H
+
+#include <stdint.h>
+
+class Uptime {
+ private:
+ Uptime(const Uptime &copy);
+
+ public:
+ Uptime () {}
+ uint64_t get();
+};
+
+extern Uptime uptime;
+
+#endif