You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change was made in response to an issue found on the Microchip
SAMD21, where an expected OUT Zero Length Packet (ZLP) was sometimes
overwritten by a subsequent SETUP transaction. The USB spec requires
that devices accept SETUP transactions, and in the SAMD parts this
behaviour is implemented in hardware. To allow the control pipe
implementation to distinguish between OUT data and SETUP data, the
read() method was changed to return an error if SETUP data was present,
and a new read_setup() was added that expects SETUP data not OUT data.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
15
15
16
16
### Changed
17
17
18
+
*[breaking] Bus API now has separate `read()` and `read_setup()` methods for OUT and SETUP data.
18
19
*[breaking] The control pipe is now provided in the `UsbDeviceBuilder` API to allow for user-provided control
19
20
pipes. This makes it so that control pipes have configurable sizing.
20
21
* Don't require UsbBus to be Sync. If a UsbBus is not Sync, it can still be used to make a UsbDevice, but that UsbDevice will not be Sync (ensuring soundness).
0 commit comments