From fab524e9e2253ab6b11b0a03bf7bf4f9435d9b37 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sat, 27 Jul 2019 21:45:29 -0400 Subject: Minor cleanup. --- usbh/src/pipe.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/usbh/src/pipe.rs b/usbh/src/pipe.rs index c6f2023..4910c3e 100644 --- a/usbh/src/pipe.rs +++ b/usbh/src/pipe.rs @@ -154,10 +154,6 @@ impl Pipe<'_, '_> { unsafe { w.multi_packet_size().bits(0) } }); - // PSTATUSSET.DTGL set -- TODO: figure out if this is - // necessary. - self.regs.statusset.write(|w| w.dtgl().set_bit()); - let token = match bm_request_type.direction() { USBSetupDirection::DeviceToHost => USBToken::Out, USBSetupDirection::HostToDevice => USBToken::In, @@ -203,11 +199,6 @@ impl Pipe<'_, '_> { nak_limit: usize, millis: &dyn Fn() -> usize, ) -> Result<(usize), PipeErr> { - // Data needs to be word aligned. - assert!((buf.ptr as u32) & 0x3 == 0); - // byte_count section of register is 14 bits. - assert!(buf.len < 16_384); - // TODO: pull this from pipe descriptor for this addr/ep. let packet_size = 8; -- cgit v1.2.3