diff options
| author | hathach <[email protected]> | 2026-06-15 14:53:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-06-15 14:53:33 +0700 |
| commit | 3bdf52fc1ba06eb96ca28e9c3656b0d6a59cd201 (patch) | |
| tree | 5f55c4903b77f51b9deac17ce60aef90693cee28 /lib | |
| parent | ff57edb3e5e8d36b2783971924bf7373b4fc39bc (diff) | |
dcd/musb: name pipe0_state_t, use local pointer, group struct fields
Pure cleanup, no behavior change:
- Extract the EP0 control-transfer state into a named pipe0_state_t
typedef instead of an anonymous nested struct, and access it through
a local pipe0_state_t* in the functions that touch it repeatedly.
- Group the pipe0 fields so the two bools sit together and the larger
tusb_control_request_t deferred_setup is last.
- Reword the deferral comments: "coalesced" -> "combined".
Note: separating the edpt0_xfer DATA_IN/DATA_OUT case (dispatch on
state instead of dir_in) was attempted and reverted — it breaks ADI
MUSB enumeration. usbd can arm the opposite-direction status while
pipe0 is still in a DATA state, and only dir-dispatch routes that
correctly; a comment on the combined case records this.
Verified: HIL pass on ek_tm4c123gxl and max32666fthr (13/13 each).
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
