Skip to content

Commit 9a366d9

Browse files
committed
Don't prepare DMA transfer in read_control_setup
1 parent a4e7fb6 commit 9a366d9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,6 @@ impl<'c> Usbd<'c> {
199199
ep0_state.is_set_address = (buf[0] == 0x00) && (buf[1] == 0x05);
200200

201201
if ep0_state.direction == UsbDirection::Out {
202-
let ptr = self.bufs.out_bufs[0];
203-
let len = self.bufs.out_lens[0];
204-
205-
unsafe {
206-
regs.epout0.ptr.write(|w| w.bits(ptr as u32));
207-
regs.epout0.maxcnt.write(|w| w.bits(u32::from(len)));
208-
}
209202
regs.tasks_ep0rcvout
210203
.write(|w| w.tasks_ep0rcvout().set_bit());
211204
}

0 commit comments

Comments
 (0)