summaryrefslogtreecommitdiff
path: root/src/arch/esp8266/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/esp8266/driver')
-rw-r--r--src/arch/esp8266/driver/uptime.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/arch/esp8266/driver/uptime.cc b/src/arch/esp8266/driver/uptime.cc
new file mode 100644
index 0000000..51cc617
--- /dev/null
+++ b/src/arch/esp8266/driver/uptime.cc
@@ -0,0 +1,12 @@
+#include "driver/uptime.h"
+extern "C" {
+#include "osapi.h"
+#include "user_interface.h"
+}
+
+uint32_t Uptime::get()
+{
+ return system_get_time();
+}
+
+Uptime uptime;