Decoupling Architectural-specific Code (#35)
[lunaix-os.git] / lunaix-os / includes / hal / hwtimer.h
index 83ff92c8bc9c3bc75162edb913009071db437ebf..2faa5076535d69155e0740290164d0087a1294fb 100644 (file)
@@ -12,6 +12,7 @@ struct hwtimer
     char* name;
     void* data;
 
+    struct devclass class;
     struct device* timer_dev;
 
     int (*supported)(struct hwtimer*);
@@ -21,13 +22,11 @@ struct hwtimer
     ticks_t running_freq;
 };
 
-extern struct hwtimer* current_timer;
-
 void
 hwtimer_init(u32_t hertz, void* tick_callback);
 
 struct hwtimer*
-hwtimer_choose();
+select_platform_timer();
 
 ticks_t
 hwtimer_base_frequency();