Replies: 2 comments 1 reply
-
Good morning, When polling the INT line it could be quite difficult to detect the pulse.
By the way, the int handler should actually be called via |
Beta Was this translation helpful? Give feedback.
-
Maybe it could still work the way you do it because the pulse is only used to retrigger the interrupt handler. From the MCU's perspective it would look like level triggered |
Beta Was this translation helpful? Give feedback.
-
Hello-
Our project is quite often getting stuck infinitely in function tuh_control_xfer() from usbh.c, in particular this loop-
And the top of the function includes this-
It's easy enough to understand why we're in this loop. Our project does not use an RTOS and interrupts are not enabled, so we have to poll the MAX3421 INT line (our host controller of choice) to add events to the queue-
So it's easy enough to add this same polling to the while-loop we're getting stuck in. The bigger concern is how to properly exit if we implement the timeout ourselves. If we're stuck in that loop and time expires, what should happen exactly? The function exits or something else?
Beta Was this translation helpful? Give feedback.
All reactions