Decoupling Architectural-specific Code (#35)
[lunaix-os.git] / lunaix-os / hal / timer / timer_device.c
index 3e47fac5f088b58cc2c6798e1d45cbc3faa117ac..1db814764346acc7b03e56de810773a3f2cc8350 100644 (file)
@@ -51,7 +51,7 @@ __hwtimer_ioctl(struct device* dev, u32_t req, va_list args)
 void
 hwtimer_init(u32_t hertz, void* tick_callback)
 {
-    struct hwtimer* hwt_ctx = hwtimer_choose();
+    struct hwtimer* hwt_ctx = select_platform_timer();
 
     hwt_ctx->init(hwt_ctx, hertz, tick_callback);
     hwt_ctx->running_freq = hertz;