diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci-timer.c b/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci-timer.c index 39df9da06a..3ce6e397cf 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci-timer.c +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci-timer.c @@ -97,8 +97,8 @@ static unsigned long event_delays_ns[] = { static void ehci_enable_event(struct ehci_hcd *ehci, unsigned event, bool resched) { - unsigned long *timeout = &ehci->hr_timeouts[event]; - unsigned long time_interval = 0; + rt_tick_t *timeout = &ehci->hr_timeouts[event]; + rt_tick_t time_interval = 0; if (resched) { diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci.h b/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci.h index 70073b0828..73566b8c97 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci.h +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci.h @@ -119,7 +119,7 @@ struct ehci_hcd { /* one per controller */ /* timing support */ enum ehci_hrtimer_event next_hrtimer_event; unsigned enabled_hrtimer_events; - unsigned long hr_timeouts[EHCI_HRTIMER_NUM_EVENTS]; + rt_tick_t hr_timeouts[EHCI_HRTIMER_NUM_EVENTS]; osal_timer_t hrtimer; int PSS_poll_count;