X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/7b8a1bcad75628f9add4590db2bb9b8e418ee8eb..29891c3ccec4f1d28e0440d87ea2e2708377d2ee:/lunaix-os/hal/timer/timer_device.c diff --git a/lunaix-os/hal/timer/timer_device.c b/lunaix-os/hal/timer/timer_device.c index 3e47fac..1db8147 100644 --- a/lunaix-os/hal/timer/timer_device.c +++ b/lunaix-os/hal/timer/timer_device.c @@ -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;