diff options
| author | Dirk Stolle <[email protected]> | 2023-05-08 23:25:01 +0200 |
|---|---|---|
| committer | Dirk Stolle <[email protected]> | 2023-05-08 23:25:01 +0200 |
| commit | 0584312ef0324d2ac67dbb9517176fabf628eec9 (patch) | |
| tree | 1b6e67474474fad99e7035a8e8898f4fb78656ad /embassy-usb | |
| parent | d0703f83dbe0099c3dca0c912d873365a2188018 (diff) | |
Fix some typos
Diffstat (limited to 'embassy-usb')
| -rw-r--r-- | embassy-usb/src/class/cdc_ncm/mod.rs | 4 | ||||
| -rw-r--r-- | embassy-usb/src/class/hid.rs | 2 | ||||
| -rw-r--r-- | embassy-usb/src/msos.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/embassy-usb/src/class/cdc_ncm/mod.rs b/embassy-usb/src/class/cdc_ncm/mod.rs index 262499ccb..d5556dd0b 100644 --- a/embassy-usb/src/class/cdc_ncm/mod.rs +++ b/embassy-usb/src/class/cdc_ncm/mod.rs | |||
| @@ -370,7 +370,7 @@ pub struct Sender<'d, D: Driver<'d>> { | |||
| 370 | impl<'d, D: Driver<'d>> Sender<'d, D> { | 370 | impl<'d, D: Driver<'d>> Sender<'d, D> { |
| 371 | /// Write a packet. | 371 | /// Write a packet. |
| 372 | /// | 372 | /// |
| 373 | /// This waits until the packet is succesfully stored in the CDC-NCM endpoint buffers. | 373 | /// This waits until the packet is successfully stored in the CDC-NCM endpoint buffers. |
| 374 | pub async fn write_packet(&mut self, data: &[u8]) -> Result<(), EndpointError> { | 374 | pub async fn write_packet(&mut self, data: &[u8]) -> Result<(), EndpointError> { |
| 375 | let seq = self.seq; | 375 | let seq = self.seq; |
| 376 | self.seq = self.seq.wrapping_add(1); | 376 | self.seq = self.seq.wrapping_add(1); |
| @@ -436,7 +436,7 @@ pub struct Receiver<'d, D: Driver<'d>> { | |||
| 436 | impl<'d, D: Driver<'d>> Receiver<'d, D> { | 436 | impl<'d, D: Driver<'d>> Receiver<'d, D> { |
| 437 | /// Write a network packet. | 437 | /// Write a network packet. |
| 438 | /// | 438 | /// |
| 439 | /// This waits until a packet is succesfully received from the endpoint buffers. | 439 | /// This waits until a packet is successfully received from the endpoint buffers. |
| 440 | pub async fn read_packet(&mut self, buf: &mut [u8]) -> Result<usize, EndpointError> { | 440 | pub async fn read_packet(&mut self, buf: &mut [u8]) -> Result<usize, EndpointError> { |
| 441 | // Retry loop | 441 | // Retry loop |
| 442 | loop { | 442 | loop { |
diff --git a/embassy-usb/src/class/hid.rs b/embassy-usb/src/class/hid.rs index 03e4c1dbb..889d66ec5 100644 --- a/embassy-usb/src/class/hid.rs +++ b/embassy-usb/src/class/hid.rs | |||
| @@ -165,7 +165,7 @@ impl<'d, D: Driver<'d>, const READ_N: usize, const WRITE_N: usize> HidReaderWrit | |||
| 165 | } | 165 | } |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | /// Splits into seperate readers/writers for input and output reports. | 168 | /// Splits into separate readers/writers for input and output reports. |
| 169 | pub fn split(self) -> (HidReader<'d, D, READ_N>, HidWriter<'d, D, WRITE_N>) { | 169 | pub fn split(self) -> (HidReader<'d, D, READ_N>, HidWriter<'d, D, WRITE_N>) { |
| 170 | (self.reader, self.writer) | 170 | (self.reader, self.writer) |
| 171 | } | 171 | } |
diff --git a/embassy-usb/src/msos.rs b/embassy-usb/src/msos.rs index 218d9931a..187b2ff8e 100644 --- a/embassy-usb/src/msos.rs +++ b/embassy-usb/src/msos.rs | |||
| @@ -186,7 +186,7 @@ impl<'d> MsOsDescriptorWriter<'d> { | |||
| 186 | capability_type::PLATFORM, | 186 | capability_type::PLATFORM, |
| 187 | &[ | 187 | &[ |
| 188 | 0, // reserved | 188 | 0, // reserved |
| 189 | // platform capability UUID, Microsoft OS 2.0 platform compabitility | 189 | // platform capability UUID, Microsoft OS 2.0 platform compatibility |
| 190 | 0xdf, | 190 | 0xdf, |
| 191 | 0x60, | 191 | 0x60, |
| 192 | 0xdd, | 192 | 0xdd, |
