Pārlūkot izejas kodu

sunxi-hal use rt_tick_t

Yonggang Luo 3 mēneši atpakaļ
vecāks
revīzija
5aa2faa2e2

+ 2 - 2
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)
     {

+ 1 - 1
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;