summaryrefslogtreecommitdiff
path: root/include/arch/esp8266
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/esp8266')
-rw-r--r--include/arch/esp8266/driver/counter.h4
-rw-r--r--include/arch/esp8266/driver/uptime.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/include/arch/esp8266/driver/counter.h b/include/arch/esp8266/driver/counter.h
index 0b50c8e..beb36e5 100644
--- a/include/arch/esp8266/driver/counter.h
+++ b/include/arch/esp8266/driver/counter.h
@@ -7,8 +7,8 @@ extern "C" {
}
#include "c_types.h"
-typedef counter_value_t uint32_t;
-typedef counter_overflow_t uint32_t;
+typedef uint32_t counter_value_t;
+typedef uint32_t counter_overflow_t;
class Counter {
private:
diff --git a/include/arch/esp8266/driver/uptime.h b/include/arch/esp8266/driver/uptime.h
index 21740c9..44dde43 100644
--- a/include/arch/esp8266/driver/uptime.h
+++ b/include/arch/esp8266/driver/uptime.h
@@ -14,6 +14,7 @@ class Uptime {
public:
Uptime () {}
inline uint32_t get_us() { return system_get_time(); }
+ inline uint32_t get_s() { return system_get_time() / 1000000; }
inline uint32_t get_cycles()
{