Merge remote-tracking branch 'origin/master' into isa/arm64
[lunaix-os.git] / lunaix-os / includes / lunaix / clock.h
index 6a3d26eacf91a0c8b54bed2ef6949e032b069652..3cb1e4e5f6838398c0d04419bf74106ab3869f7f 100644 (file)
@@ -3,8 +3,11 @@
 
 #include <lunaix/time.h>
 
-void
-clock_init();
+#include <hal/hwrtc.h>
+#include <hal/hwtimer.h>
+
+extern const struct hwrtc_potens* sysrtc;
+extern const struct hwtimer_pot* systimer;
 
 void
 clock_walltime(datetime_t* datetime);
@@ -20,4 +23,10 @@ clock_systime();
 time_t
 clock_unixtime();
 
+static inline void
+clock_init()
+{
+    hwrtc_init();
+}
+
 #endif /* __LUNAIX_CLOCK_H */