rp usb: wake ep-wakers after stalling

This commit is contained in:
Rob Pilling 2024-04-29 16:23:42 +01:00
parent 94b38449bd
commit 84cd0c672b

View File

@ -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 {