diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-05-30 00:07:15 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-05-30 00:07:15 +0200 |
| commit | 1ec2e5672f6652aa3e2cbe38a3c47919e6700baa (patch) | |
| tree | 2ad3ebab57e1d4266dff5a7e674574c25a629c63 /embassy-usb | |
| parent | 98d8c9373d9e98010593e16aa791f4a41317865f (diff) | |
usb: remove is_stalled, set_stalled from Endpoint.
They're unused, and I believe it's not allowed for classes to
stall EPs on their own?
Diffstat (limited to 'embassy-usb')
| -rw-r--r-- | embassy-usb/src/driver.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/embassy-usb/src/driver.rs b/embassy-usb/src/driver.rs index 8454b041f..acd2e298d 100644 --- a/embassy-usb/src/driver.rs +++ b/embassy-usb/src/driver.rs | |||
| @@ -118,17 +118,8 @@ pub trait Endpoint { | |||
| 118 | /// Get the endpoint address | 118 | /// Get the endpoint address |
| 119 | fn info(&self) -> &EndpointInfo; | 119 | fn info(&self) -> &EndpointInfo; |
| 120 | 120 | ||
| 121 | /// Sets or clears the STALL condition for an endpoint. If the endpoint is an OUT endpoint, it | ||
| 122 | /// should be prepared to receive data again. | ||
| 123 | fn set_stalled(&self, stalled: bool); | ||
| 124 | |||
| 125 | /// Gets whether the STALL condition is set for an endpoint. | ||
| 126 | fn is_stalled(&self) -> bool; | ||
| 127 | |||
| 128 | /// Waits for the endpoint to be enabled. | 121 | /// Waits for the endpoint to be enabled. |
| 129 | fn wait_enabled(&mut self) -> Self::WaitEnabledFuture<'_>; | 122 | fn wait_enabled(&mut self) -> Self::WaitEnabledFuture<'_>; |
| 130 | |||
| 131 | // TODO enable/disable? | ||
| 132 | } | 123 | } |
| 133 | 124 | ||
| 134 | pub trait EndpointOut: Endpoint { | 125 | pub trait EndpointOut: Endpoint { |
