mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
rp usb: wake ep-wakers after stalling
This commit is contained in:
parent
94b38449bd
commit
84cd0c672b
@ -432,6 +432,9 @@ impl<'d, T: Instance> driver::Bus for Bus<'d, T> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ctrl.modify(|w| w.set_stall(stalled));
|
ctrl.modify(|w| w.set_stall(stalled));
|
||||||
|
|
||||||
|
let wakers = if ep_addr.is_in() { &EP_IN_WAKERS } else { &EP_OUT_WAKERS };
|
||||||
|
wakers[n].wake();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn endpoint_is_stalled(&mut self, ep_addr: EndpointAddress) -> bool {
|
fn endpoint_is_stalled(&mut self, ep_addr: EndpointAddress) -> bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user