Closed zhangjinxing closed 2 years ago
How about disable HcInterruptEnable.RHSC when performing port reset, to avoid hanging in interrupts? It does lest change.
Another way with RTOS practice would be adding event flags (or semaphore) and wait events for the status change. In interrupt set event flags (or put semaphore) to wakeup pending thread that is doing reset.
Thanks!
I found that the OHCI_HC_PS_PRSC flag should be cleared in the ux_hcd_hoci_interrupt_handler function, otherwise the interrupt will continue。
But the following code needs to be modified
CPU:N32905 ARM926