X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/6f6da1abb22dff69dbb710bd2fd9d95f083f2b43..8b8f49b713d64065775fe538232f8639083601bd:/lunaix-os/hal/timer/apic_timer.c diff --git a/lunaix-os/hal/timer/apic_timer.c b/lunaix-os/hal/timer/apic_timer.c index c52cebe..e195f34 100644 --- a/lunaix-os/hal/timer/apic_timer.c +++ b/lunaix-os/hal/timer/apic_timer.c @@ -150,12 +150,13 @@ apic_timer_init(struct hwtimer* timer, u32_t hertz, timer_tick_cb timer_cb) struct hwtimer* apic_hwtimer_context() { - static struct hwtimer apic_hwt = { .name = "apic_timer", - .class = DEVCLASS( - DEVIF_SOC, DEVFN_TIME, DEV_TIMER, 0), - .init = apic_timer_init, - .supported = apic_timer_check, - .systicks = apic_get_systicks }; + static struct hwtimer apic_hwt = { + .name = "apic_timer", + .class = DEVCLASSV(DEVIF_SOC, DEVFN_TIME, DEV_TIMER, DEV_TIMER_APIC), + .init = apic_timer_init, + .supported = apic_timer_check, + .systicks = apic_get_systicks + }; return &apic_hwt; }