diff options
| author | Stefan Gehr <[email protected]> | 2024-02-03 14:56:31 +0100 |
|---|---|---|
| committer | Stefan Gehr <[email protected]> | 2024-02-03 14:56:31 +0100 |
| commit | b9d0069671b33107e35af6bdaa662e9c7be8e3f9 (patch) | |
| tree | b6c4d3d407a1cf4eb05985d20915ba6a07db8182 | |
| parent | 88e7e1ceb9882a25548ecd8f69c8be5ba26ca6a3 (diff) | |
correct spelling of the word "receive"
| -rw-r--r-- | embassy-net/src/tcp.rs | 4 | ||||
| -rw-r--r-- | embassy-stm32/src/eth/v2/descriptors.rs | 2 | ||||
| -rw-r--r-- | embassy-sync/src/priority_channel.rs | 2 | ||||
| -rw-r--r-- | examples/rp/src/bin/i2c_slave.rs | 6 | ||||
| -rw-r--r-- | tests/rp/src/bin/i2c.rs | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index 72b0677b4..c508ff97a 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs | |||
| @@ -342,7 +342,7 @@ impl<'a> TcpSocket<'a> { | |||
| 342 | self.io.with(|s, _| s.may_send()) | 342 | self.io.with(|s, _| s.may_send()) |
| 343 | } | 343 | } |
| 344 | 344 | ||
| 345 | /// return whether the recieve half of the full-duplex connection is open. | 345 | /// return whether the receive half of the full-duplex connection is open. |
| 346 | /// This function returns true if it’s possible to receive data from the remote endpoint. | 346 | /// This function returns true if it’s possible to receive data from the remote endpoint. |
| 347 | /// It will return true while there is data in the receive buffer, and if there isn’t, | 347 | /// It will return true while there is data in the receive buffer, and if there isn’t, |
| 348 | /// as long as the remote endpoint has not closed the connection. | 348 | /// as long as the remote endpoint has not closed the connection. |
| @@ -471,7 +471,7 @@ impl<'d> TcpIo<'d> { | |||
| 471 | s.register_recv_waker(cx.waker()); | 471 | s.register_recv_waker(cx.waker()); |
| 472 | Poll::Pending | 472 | Poll::Pending |
| 473 | } else { | 473 | } else { |
| 474 | // if we can't receive because the recieve half of the duplex connection is closed then return an error | 474 | // if we can't receive because the receive half of the duplex connection is closed then return an error |
| 475 | Poll::Ready(Err(Error::ConnectionReset)) | 475 | Poll::Ready(Err(Error::ConnectionReset)) |
| 476 | } | 476 | } |
| 477 | } else { | 477 | } else { |
diff --git a/embassy-stm32/src/eth/v2/descriptors.rs b/embassy-stm32/src/eth/v2/descriptors.rs index 01ea8e574..645bfdb14 100644 --- a/embassy-stm32/src/eth/v2/descriptors.rs +++ b/embassy-stm32/src/eth/v2/descriptors.rs | |||
| @@ -129,7 +129,7 @@ impl<'a> TDesRing<'a> { | |||
| 129 | 129 | ||
| 130 | /// Receive Descriptor representation | 130 | /// Receive Descriptor representation |
| 131 | /// | 131 | /// |
| 132 | /// * rdes0: recieve buffer address | 132 | /// * rdes0: receive buffer address |
| 133 | /// * rdes1: | 133 | /// * rdes1: |
| 134 | /// * rdes2: | 134 | /// * rdes2: |
| 135 | /// * rdes3: OWN and Status | 135 | /// * rdes3: OWN and Status |
diff --git a/embassy-sync/src/priority_channel.rs b/embassy-sync/src/priority_channel.rs index bd75c0135..e77678c24 100644 --- a/embassy-sync/src/priority_channel.rs +++ b/embassy-sync/src/priority_channel.rs | |||
| @@ -325,7 +325,7 @@ where | |||
| 325 | /// | 325 | /// |
| 326 | /// Sent data may be reordered based on their priorty within the channel. | 326 | /// Sent data may be reordered based on their priorty within the channel. |
| 327 | /// For example, in a [`Max`](heapless::binary_heap::Max) [`PriorityChannel`] | 327 | /// For example, in a [`Max`](heapless::binary_heap::Max) [`PriorityChannel`] |
| 328 | /// containing `u32`'s, data sent in the following order `[1, 2, 3]` will be recieved as `[3, 2, 1]`. | 328 | /// containing `u32`'s, data sent in the following order `[1, 2, 3]` will be received as `[3, 2, 1]`. |
| 329 | pub struct PriorityChannel<M, T, K, const N: usize> | 329 | pub struct PriorityChannel<M, T, K, const N: usize> |
| 330 | where | 330 | where |
| 331 | T: Ord, | 331 | T: Ord, |
diff --git a/examples/rp/src/bin/i2c_slave.rs b/examples/rp/src/bin/i2c_slave.rs index 479f9a16a..ac470d2be 100644 --- a/examples/rp/src/bin/i2c_slave.rs +++ b/examples/rp/src/bin/i2c_slave.rs | |||
| @@ -26,7 +26,7 @@ async fn device_task(mut dev: i2c_slave::I2cSlave<'static, I2C1>) -> ! { | |||
| 26 | loop { | 26 | loop { |
| 27 | let mut buf = [0u8; 128]; | 27 | let mut buf = [0u8; 128]; |
| 28 | match dev.listen(&mut buf).await { | 28 | match dev.listen(&mut buf).await { |
| 29 | Ok(i2c_slave::Command::GeneralCall(len)) => info!("Device recieved general call write: {}", buf[..len]), | 29 | Ok(i2c_slave::Command::GeneralCall(len)) => info!("Device received general call write: {}", buf[..len]), |
| 30 | Ok(i2c_slave::Command::Read) => loop { | 30 | Ok(i2c_slave::Command::Read) => loop { |
| 31 | match dev.respond_to_read(&[state]).await { | 31 | match dev.respond_to_read(&[state]).await { |
| 32 | Ok(x) => match x { | 32 | Ok(x) => match x { |
| @@ -40,9 +40,9 @@ async fn device_task(mut dev: i2c_slave::I2cSlave<'static, I2C1>) -> ! { | |||
| 40 | Err(e) => error!("error while responding {}", e), | 40 | Err(e) => error!("error while responding {}", e), |
| 41 | } | 41 | } |
| 42 | }, | 42 | }, |
| 43 | Ok(i2c_slave::Command::Write(len)) => info!("Device recieved write: {}", buf[..len]), | 43 | Ok(i2c_slave::Command::Write(len)) => info!("Device received write: {}", buf[..len]), |
| 44 | Ok(i2c_slave::Command::WriteRead(len)) => { | 44 | Ok(i2c_slave::Command::WriteRead(len)) => { |
| 45 | info!("device recieved write read: {:x}", buf[..len]); | 45 | info!("device received write read: {:x}", buf[..len]); |
| 46 | match buf[0] { | 46 | match buf[0] { |
| 47 | // Set the state | 47 | // Set the state |
| 48 | 0xC2 => { | 48 | 0xC2 => { |
diff --git a/tests/rp/src/bin/i2c.rs b/tests/rp/src/bin/i2c.rs index 77d628cf6..a0aed1a42 100644 --- a/tests/rp/src/bin/i2c.rs +++ b/tests/rp/src/bin/i2c.rs | |||
| @@ -80,7 +80,7 @@ async fn device_task(mut dev: i2c_slave::I2cSlave<'static, I2C1>) -> ! { | |||
| 80 | _ => panic!("Invalid write length {}", len), | 80 | _ => panic!("Invalid write length {}", len), |
| 81 | }, | 81 | }, |
| 82 | Ok(i2c_slave::Command::WriteRead(len)) => { | 82 | Ok(i2c_slave::Command::WriteRead(len)) => { |
| 83 | info!("device recieved write read: {:x}", buf[..len]); | 83 | info!("device received write read: {:x}", buf[..len]); |
| 84 | match buf[0] { | 84 | match buf[0] { |
| 85 | 0xC2 => { | 85 | 0xC2 => { |
| 86 | let resp_buff = [0xD1, 0xD2, 0xD3, 0xD4]; | 86 | let resp_buff = [0xD1, 0xD2, 0xD3, 0xD4]; |
