rp usb: wake ep-wakers after stalling
This commit is contained in:
parent
94b38449bd
commit
84cd0c672b
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue