aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-01-31 22:27:19 +0100
committerDario Nieuwenhuis <[email protected]>2023-01-31 22:27:19 +0100
commitca10fe7135d10084e38038f3cd433da39e505bea (patch)
tree075aca4a76caccd1bba95869c64bbb838969c8b1 /embassy-nrf/src
parent4c1946454874597c358e7c7d5bf555b687376a5b (diff)
usb: docs
Diffstat (limited to 'embassy-nrf/src')
-rw-r--r--embassy-nrf/src/usb.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-nrf/src/usb.rs b/embassy-nrf/src/usb.rs
index 6be4fec8c..f030b909f 100644
--- a/embassy-nrf/src/usb.rs
+++ b/embassy-nrf/src/usb.rs
@@ -235,7 +235,7 @@ impl<'d, T: Instance, P: UsbSupply + 'd> driver::Driver<'d> for Driver<'d, T, P>
235 &mut self, 235 &mut self,
236 ep_type: EndpointType, 236 ep_type: EndpointType,
237 packet_size: u16, 237 packet_size: u16,
238 interval: u8, 238 interval_ms: u8,
239 ) -> Result<Self::EndpointIn, driver::EndpointAllocError> { 239 ) -> Result<Self::EndpointIn, driver::EndpointAllocError> {
240 let index = self.alloc_in.allocate(ep_type)?; 240 let index = self.alloc_in.allocate(ep_type)?;
241 let ep_addr = EndpointAddress::from_parts(index, Direction::In); 241 let ep_addr = EndpointAddress::from_parts(index, Direction::In);
@@ -243,7 +243,7 @@ impl<'d, T: Instance, P: UsbSupply + 'd> driver::Driver<'d> for Driver<'d, T, P>
243 addr: ep_addr, 243 addr: ep_addr,
244 ep_type, 244 ep_type,
245 max_packet_size: packet_size, 245 max_packet_size: packet_size,
246 interval, 246 interval_ms,
247 })) 247 }))
248 } 248 }
249 249
@@ -251,7 +251,7 @@ impl<'d, T: Instance, P: UsbSupply + 'd> driver::Driver<'d> for Driver<'d, T, P>
251 &mut self, 251 &mut self,
252 ep_type: EndpointType, 252 ep_type: EndpointType,
253 packet_size: u16, 253 packet_size: u16,
254 interval: u8, 254 interval_ms: u8,
255 ) -> Result<Self::EndpointOut, driver::EndpointAllocError> { 255 ) -> Result<Self::EndpointOut, driver::EndpointAllocError> {
256 let index = self.alloc_out.allocate(ep_type)?; 256 let index = self.alloc_out.allocate(ep_type)?;
257 let ep_addr = EndpointAddress::from_parts(index, Direction::Out); 257 let ep_addr = EndpointAddress::from_parts(index, Direction::Out);
@@ -259,7 +259,7 @@ impl<'d, T: Instance, P: UsbSupply + 'd> driver::Driver<'d> for Driver<'d, T, P>
259 addr: ep_addr, 259 addr: ep_addr,
260 ep_type, 260 ep_type,
261 max_packet_size: packet_size, 261 max_packet_size: packet_size,
262 interval, 262 interval_ms,
263 })) 263 }))
264 } 264 }
265 265