adding usb_assert

This commit is contained in:
xj 2024-08-16 05:32:32 -07:00
parent dd3104c4a1
commit 7a7318734b
2 changed files with 9 additions and 1 deletions

View File

@ -338,3 +338,9 @@ void usb_osal_msleep(uint32_t delay){
}
}
void usb_assert(const char *filename, int linenum){
printf("%s, %d\n", filename, linenum);
exit(-1);
}

View File

@ -578,7 +578,7 @@ void USBH_IRQHandler(void *param)
usbsts |= XHCI_USBSTS_EINT;
writel(usbsts, xhci->op + XHCI_OP_USBSTS);
/* ack interrupt */
/* ack interrupt */xhci_usbh_roothub_control
runtime = readl(xhci->run + XHCI_RUN_IR_IMAN ( 0 ));
runtime |= XHCI_RUN_IR_IMAN_IP;
writel (runtime, xhci->run + XHCI_RUN_IR_IMAN ( 0 ));
@ -1123,3 +1123,5 @@ int create_xhci_intr_service(void *para){
return 0;
}