summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonggang Luo <[email protected]>2025-09-22 00:46:57 +0800
committerR b b666 <[email protected]>2025-09-24 18:12:36 +0800
commit5aa2faa2e278f4fa0c5a505121093fba888e15b1 (patch)
tree3d6dd8735b30a0f12a6929515bb094f8624125dc
parent19451d9bb706a62898a8bd31076a4cbcbd1c0472 (diff)
sunxi-hal use rt_tick_t
-rw-r--r--bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci-timer.c4
-rw-r--r--bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ehci.h2
2 files changed, 3 insertions, 3 deletions
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;