diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-01-31 22:27:19 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-01-31 22:27:19 +0100 |
| commit | ca10fe7135d10084e38038f3cd433da39e505bea (patch) | |
| tree | 075aca4a76caccd1bba95869c64bbb838969c8b1 /embassy-rp/src | |
| parent | 4c1946454874597c358e7c7d5bf555b687376a5b (diff) | |
usb: docs
Diffstat (limited to 'embassy-rp/src')
| -rw-r--r-- | embassy-rp/src/usb.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/embassy-rp/src/usb.rs b/embassy-rp/src/usb.rs index 8eec55b49..2e3708eff 100644 --- a/embassy-rp/src/usb.rs +++ b/embassy-rp/src/usb.rs | |||
| @@ -194,13 +194,13 @@ impl<'d, T: Instance> Driver<'d, T> { | |||
| 194 | &mut self, | 194 | &mut self, |
| 195 | ep_type: EndpointType, | 195 | ep_type: EndpointType, |
| 196 | max_packet_size: u16, | 196 | max_packet_size: u16, |
| 197 | interval: u8, | 197 | interval_ms: u8, |
| 198 | ) -> Result<Endpoint<'d, T, D>, driver::EndpointAllocError> { | 198 | ) -> Result<Endpoint<'d, T, D>, driver::EndpointAllocError> { |
| 199 | trace!( | 199 | trace!( |
| 200 | "allocating type={:?} mps={:?} interval={}, dir={:?}", | 200 | "allocating type={:?} mps={:?} interval_ms={}, dir={:?}", |
| 201 | ep_type, | 201 | ep_type, |
| 202 | max_packet_size, | 202 | max_packet_size, |
| 203 | interval, | 203 | interval_ms, |
| 204 | D::dir() | 204 | D::dir() |
| 205 | ); | 205 | ); |
| 206 | 206 | ||
| @@ -281,7 +281,7 @@ impl<'d, T: Instance> Driver<'d, T> { | |||
| 281 | addr: EndpointAddress::from_parts(index, D::dir()), | 281 | addr: EndpointAddress::from_parts(index, D::dir()), |
| 282 | ep_type, | 282 | ep_type, |
| 283 | max_packet_size, | 283 | max_packet_size, |
| 284 | interval, | 284 | interval_ms, |
| 285 | }, | 285 | }, |
| 286 | buf, | 286 | buf, |
| 287 | }) | 287 | }) |
| @@ -298,18 +298,18 @@ impl<'d, T: Instance> driver::Driver<'d> for Driver<'d, T> { | |||
| 298 | &mut self, | 298 | &mut self, |
| 299 | ep_type: EndpointType, | 299 | ep_type: EndpointType, |
| 300 | max_packet_size: u16, | 300 | max_packet_size: u16, |
| 301 | interval: u8, | 301 | interval_ms: u8, |
| 302 | ) -> Result<Self::EndpointIn, driver::EndpointAllocError> { | 302 | ) -> Result<Self::EndpointIn, driver::EndpointAllocError> { |
| 303 | self.alloc_endpoint(ep_type, max_packet_size, interval) | 303 | self.alloc_endpoint(ep_type, max_packet_size, interval_ms) |
| 304 | } | 304 | } |
| 305 | 305 | ||
| 306 | fn alloc_endpoint_out( | 306 | fn alloc_endpoint_out( |
| 307 | &mut self, | 307 | &mut self, |
| 308 | ep_type: EndpointType, | 308 | ep_type: EndpointType, |
| 309 | max_packet_size: u16, | 309 | max_packet_size: u16, |
| 310 | interval: u8, | 310 | interval_ms: u8, |
| 311 | ) -> Result<Self::EndpointOut, driver::EndpointAllocError> { | 311 | ) -> Result<Self::EndpointOut, driver::EndpointAllocError> { |
| 312 | self.alloc_endpoint(ep_type, max_packet_size, interval) | 312 | self.alloc_endpoint(ep_type, max_packet_size, interval_ms) |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | fn start(self, control_max_packet_size: u16) -> (Self::Bus, Self::ControlPipe) { | 315 | fn start(self, control_max_packet_size: u16) -> (Self::Bus, Self::ControlPipe) { |
