Update hcd-ehci, dcd-dwc2 and examples.

1. Add some example Msh commands.
2. Fix device enumeration on EXT hub.
3. Re-file some templates.
4. Extend end-point number of dwc2 device driver.
5. Re-file rndis_host implementation includes
   a. rt_mutex_take in ISR
   b. 2rd pmsg is unaligned issue.
   c. destroy u0 ethernet resource after removing dongle.
This commit is contained in:
Wayne Lin
2023-09-07 12:43:30 +08:00
committed by sakumisu
parent bc1e7c4bd5
commit dd1f1d3ba8
13 changed files with 244 additions and 109 deletions

View File

@@ -299,7 +299,9 @@ static void hub_int_complete_callback(void *arg, int nbytes)
{
struct usbh_hub *hub = (struct usbh_hub *)arg;
if (nbytes > 0) {
// >=0 can pass device enumeration on EXT hub.
if (nbytes >= 0)
{
usbh_hub_thread_wakeup(hub);
}
}