Interrupt function

This commit is contained in:
xj 2024-08-13 19:31:36 -07:00
parent aaceb82386
commit b53ba2e4b4
1 changed files with 10 additions and 0 deletions

View File

@ -612,6 +612,10 @@ int xhci_usb_hc_init(uint32_t id){
goto err_open;
}
if((rc = create_xhci_intr_service(xhci) < 0 )){
goto err_open;
}
err_open:
usb_osal_leave_critical_section(flag);
return rc;
@ -1035,12 +1039,14 @@ void XHCI_USBH_IRQHandler(void *param){
uint32_t usbsts;
uint32_t runtime;
id = (intptr_t)param;
if(id < 0 || id >= CONFIG_USBHOST_XHCI_NUM){
return;
}
xhci = &xhci_host[id];
USB_ASSERT(xhci);
@ -1060,6 +1066,10 @@ void XHCI_USBH_IRQHandler(void *param){
int IPC_DO_SERVE_FUNC(Ipc_xhci_intr)(void* ignore)
{
printf("TEST_SW_HDLR: In %s()\n", __func__);
intptr_t id;
id = 0;
XHCI_USBH_IRQHandler((void *)id);
return 0;
}