diff options
| author | hathach <[email protected]> | 2026-06-16 11:09:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-06-16 11:09:40 +0700 |
| commit | ba3b2453e7cbf3572663dd1b7eadafdcc6b0a912 (patch) | |
| tree | 28c1b3653a4789b738a1414bdc2e8d8ecaab5495 /lib/rt-thread/SConscript | |
| parent | 148fabb96b16fe0899004ba71d6447ec3995cf55 (diff) | |
dcd/musb: extract pipe0_data_stage_done() and fix two EP0 comments
Cleanup from a code-review pass, no behavior change:
- Replace the open-coded "last DATA packet" test (remain_wlength == 0 ||
len < CFG_TUD_ENDPOINT0_SIZE), duplicated in the edpt0_xfer DATA IN
arm, pipe0_process_xfer_state_isr, and the DATA OUT drain, with one
inline pipe0_data_stage_done() so IN and OUT can't drift.
- Correct the xact_len comment (only the IN path reports it; OUT reports
count0) and the dcd_edpt_stall comment (a deferred SETUP means the old
transfer ended on the wire, not that its status stage was "seen").
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'lib/rt-thread/SConscript')
0 files changed, 0 insertions, 0 deletions
