diff options
| author | Alex-Schaefer <[email protected]> | 2026-05-09 09:10:47 +0200 |
|---|---|---|
| committer | Alex-Schaefer <[email protected]> | 2026-05-09 09:10:47 +0200 |
| commit | cfdab2564fa5735f0a7d5653aa6eb5388456028e (patch) | |
| tree | 8fb5be25b290b96f29e42ae242eb251dbd3aab8d /examples/device/hid_multiple_interface/src/main.c | |
| parent | 4c7fd70e53b34bf63ef9334f2b5624cac48299f1 (diff) | |
dwc2: preserve EP0 status completion before SETUP
On STM32 DWC2, SETUP phase done and EP0 OUT transfer complete can be
reported together. Processing SETUP first can overwrite control state
before the previous zero-length OUT status stage is acknowledged, which
causes DFU DNLOAD/GETSTATUS traffic to lose the status ACK and stall.
Queue the EP0 OUT zero-length transfer completion before queuing the
SETUP event when the endpoint has no pending OUT data and total_len is
zero. This keeps TinyUSB control-transfer ordering intact for the
combined interrupt case.
Diffstat (limited to 'examples/device/hid_multiple_interface/src/main.c')
0 files changed, 0 insertions, 0 deletions
