renamed and cleaned up export header files to match linux convention
[lunaix-os.git] / lunaix-os / includes / lunaix / clock.h
index 58e1ead7886ab1f7993e171bfd51d1c2422d1ec3..3cb1e4e5f6838398c0d04419bf74106ab3869f7f 100644 (file)
@@ -6,11 +6,8 @@
 #include <hal/hwrtc.h>
 #include <hal/hwtimer.h>
 
 #include <hal/hwrtc.h>
 #include <hal/hwtimer.h>
 
-extern const struct hwrtc* sysrtc;
-extern const struct hwtimer* systimer;
-
-void
-clock_init();
+extern const struct hwrtc_potens* sysrtc;
+extern const struct hwtimer_pot* systimer;
 
 void
 clock_walltime(datetime_t* datetime);
 
 void
 clock_walltime(datetime_t* datetime);
@@ -26,4 +23,10 @@ clock_systime();
 time_t
 clock_unixtime();
 
 time_t
 clock_unixtime();
 
+static inline void
+clock_init()
+{
+    hwrtc_init();
+}
+
 #endif /* __LUNAIX_CLOCK_H */
 #endif /* __LUNAIX_CLOCK_H */