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