summaryrefslogtreecommitdiff
path: root/examples/device/hid_multiple_interface/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-04-24 12:04:56 +0700
committerhathach <[email protected]>2026-04-26 11:51:49 +0700
commitd3107be360b45c4b8dbc223dcc5e5f57b582c5ff (patch)
tree5fe81a43ee805c78546a2d6c590a6edd42187365 /examples/device/hid_multiple_interface/src
parent8a63f9c57ee29bd34367c347663e86fe432a0a37 (diff)
usbd_control: consolidate status stage ep selection
Extract the "which endpoint is the Status stage on" rule into a single TU_ATTR_ALWAYS_INLINE helper, and use it from both status_stage_xact() and the completion callback. Replaces the two-operand wLength/direction check with a direct endpoint-match comparison, matching the first operand's pattern. Per USB 2.0 ยง9.3.1, when wLength == 0 the bmRequestType Direction bit is ignored and the Status stage is always IN; otherwise the Status stage is opposite to the Data stage direction. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Diffstat (limited to 'examples/device/hid_multiple_interface/src')
0 files changed, 0 insertions, 0 deletions