summaryrefslogtreecommitdiff
path: root/class
diff options
context:
space:
mode:
authorsakimisu <[email protected]>2023-04-21 23:24:13 +0800
committersakimisu <[email protected]>2023-04-21 23:24:13 +0800
commitdc4887aef1b7de2529f8831ea9d5a38d9bccca04 (patch)
treec192afd9120a9c3ddfb10fe5466030fa9b0ad998 /class
parent4b59a1330e9390f21db6c52cf40be8cd6a39c7e6 (diff)
fix pointer in 64bit cpu, use uintptr_t instead
Diffstat (limited to 'class')
-rw-r--r--class/hub/usbh_hub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c
index aaaf3176..931deea6 100644
--- a/class/hub/usbh_hub.c
+++ b/class/hub/usbh_hub.c
@@ -515,7 +515,7 @@ static void usbh_hub_events(struct usbh_hub *hub)
child->connected = true;
child->port = port + 1;
child->speed = speed;
-
+
USB_LOG_INFO("New %s device on Hub %u, Port %u connected\r\n", speed_table[speed], hub->index, port + 1);
/* Configure EP0 with the default maximum packet size */
@@ -557,7 +557,7 @@ static void usbh_hub_thread(void *argument)
usb_hc_init();
while (1) {
- ret = usb_osal_mq_recv(hub_mq, (uint32_t *)&hub, 0xffffffff);
+ ret = usb_osal_mq_recv(hub_mq, (uintptr_t *)&hub, 0xffffffff);
if (ret < 0) {
continue;
}
@@ -580,7 +580,7 @@ static void usbh_roothub_register(void)
static void usbh_hub_thread_wakeup(struct usbh_hub *hub)
{
- usb_osal_mq_send(hub_mq, (uint32_t)hub);
+ usb_osal_mq_send(hub_mq, (uintptr_t)hub);
}
void usbh_roothub_thread_wakeup(uint8_t port)