stm32: USB IN endpoints use IN wakers

fixes #2360
This commit is contained in:
Ben Schattinger 2023-12-26 18:22:54 -05:00 committed by GitHub
parent 1f7209966c
commit 211f3357b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -704,7 +704,7 @@ impl<'d, T: Instance> driver::Endpoint for Endpoint<'d, T, In> {
trace!("wait_enabled OUT WAITING"); trace!("wait_enabled OUT WAITING");
let index = self.info.addr.index(); let index = self.info.addr.index();
poll_fn(|cx| { poll_fn(|cx| {
EP_OUT_WAKERS[index].register(cx.waker()); EP_IN_WAKERS[index].register(cx.waker());
let regs = T::regs(); let regs = T::regs();
if regs.epr(index).read().stat_tx() == Stat::DISABLED { if regs.epr(index).read().stat_tx() == Stat::DISABLED {
Poll::Pending Poll::Pending