Skip to content

Commit 5aa2faa

Browse files
lygstateRbb666
authored andcommitted
sunxi-hal use rt_tick_t
1 parent 19451d9 commit 5aa2faa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci-timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ static unsigned long event_delays_ns[] = {
9797
static void ehci_enable_event(struct ehci_hcd *ehci, unsigned event,
9898
bool resched)
9999
{
100-
unsigned long *timeout = &ehci->hr_timeouts[event];
101-
unsigned long time_interval = 0;
100+
rt_tick_t *timeout = &ehci->hr_timeouts[event];
101+
rt_tick_t time_interval = 0;
102102

103103
if (resched)
104104
{

bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct ehci_hcd { /* one per controller */
119119
/* timing support */
120120
enum ehci_hrtimer_event next_hrtimer_event;
121121
unsigned enabled_hrtimer_events;
122-
unsigned long hr_timeouts[EHCI_HRTIMER_NUM_EVENTS];
122+
rt_tick_t hr_timeouts[EHCI_HRTIMER_NUM_EVENTS];
123123
osal_timer_t hrtimer;
124124

125125
int PSS_poll_count;

0 commit comments

Comments
 (0)