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?
This commit is contained in:
Dario Nieuwenhuis
2022-05-30 00:07:15 +02:00
parent 98d8c9373d
commit 1ec2e5672f
2 changed files with 19 additions and 50 deletions

View File

@ -118,17 +118,8 @@ pub trait Endpoint {
/// Get the endpoint address
fn info(&self) -> &EndpointInfo;
/// Sets or clears the STALL condition for an endpoint. If the endpoint is an OUT endpoint, it
/// should be prepared to receive data again.
fn set_stalled(&self, stalled: bool);
/// Gets whether the STALL condition is set for an endpoint.
fn is_stalled(&self) -> bool;
/// Waits for the endpoint to be enabled.
fn wait_enabled(&mut self) -> Self::WaitEnabledFuture<'_>;
// TODO enable/disable?
}
pub trait EndpointOut: Endpoint {