#define __LUNAIX_CLOCK_H
#include <lunaix/time.h>
+
+#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);
time_t
clock_unixtime();
+static inline void
+clock_init()
+{
+ hwrtc_init();
+}
+
#endif /* __LUNAIX_CLOCK_H */