implement hcd_edpt_abort_xfer, hcd_device_close,

check request queue available before making usb attempt. Though there is no handling when queue is full.
device_info example work well
This commit is contained in:
hathach
2024-10-28 17:45:44 +07:00
parent 79c0a249e8
commit dd99da9dce
5 changed files with 232 additions and 122 deletions

View File

@@ -882,21 +882,11 @@ static void handle_epin_irq(uint8_t rhport) {
/* Interrupt Hierarchy
DxEPINTn.XferCompl DxEPMSK.XferComplMsk
| |
+---------- AND --------+
|
DAINT.xEPnInt DAINTMSK.xEPnMsk
| |
+---------- AND --------+
|
GINTSTS.xEPInt GINTMSK.xEPIntMsk
| |
+---------- AND --------+
|
GAHBCFG.GblIntrMsk
|
IRQn
DxEPINTn
|
DAINT.xEPn
|
GINTSTS: xEPInt
Note: when OTG_MULTI_PROC_INTRPT = 1, Device Each endpoint interrupt deachint/deachmsk/diepeachmsk/doepeachmsk
are combined to generate dedicated interrupt line for each endpoint.