git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
integrate C/LDFLAGS into LunaBuild flow
[lunaix-os.git]
/
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 c5341bed3886db14fe60e4e5c5f460c1ff61a4c1..1db814764346acc7b03e56de810773a3f2cc8350 100644
(file)
--- 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)
{
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;
hwt_ctx->init(hwt_ctx, hertz, tick_callback);
hwt_ctx->running_freq = hertz;
@@
-62,5
+62,5
@@
hwtimer_init(u32_t hertz, void* tick_callback)
timerdev->ops.exec_cmd = __hwtimer_ioctl;
timerdev->ops.exec_cmd = __hwtimer_ioctl;
-
device_register
(timerdev, &hwt_ctx->class, hwt_ctx->name);
+
register_device
(timerdev, &hwt_ctx->class, hwt_ctx->name);
}
\ No newline at end of file
}
\ No newline at end of file