diff options
| author | Ronald Weber <[email protected]> | 2025-02-19 17:29:21 +0100 |
|---|---|---|
| committer | Ronald Weber <[email protected]> | 2025-02-19 17:29:21 +0100 |
| commit | 7a2f038800e336f4b823afca9d3eb2e70e90b1e0 (patch) | |
| tree | 7c67c137b45e98d687c30ffad1a00f186cbef640 | |
| parent | a1e75841f8940153ef8e0fdb38d6c8ba7322edb9 (diff) | |
doc: Fix "the the"
| -rw-r--r-- | docs/pages/new_project.adoc | 2 | ||||
| -rw-r--r-- | embassy-net-esp-hosted/README.md | 2 | ||||
| -rw-r--r-- | embassy-rp/src/float/div.rs | 2 | ||||
| -rw-r--r-- | embassy-rp/src/intrinsics.rs | 7 | ||||
| -rw-r--r-- | embassy-stm32/src/sdmmc/mod.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/usart/buffered.rs | 4 | ||||
| -rw-r--r-- | embassy-usb/src/class/web_usb.rs | 2 | ||||
| -rw-r--r-- | embassy-usb/src/lib.rs | 4 |
8 files changed, 12 insertions, 13 deletions
diff --git a/docs/pages/new_project.adoc b/docs/pages/new_project.adoc index 63340016b..af1cb75c5 100644 --- a/docs/pages/new_project.adoc +++ b/docs/pages/new_project.adoc | |||
| @@ -109,7 +109,7 @@ embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "7703f | |||
| 109 | embassy-stm32 = { git = "https://github.com/embassy-rs/embassy", rev = "7703f47c1ecac029f603033b7977d9a2becef48c" } | 109 | embassy-stm32 = { git = "https://github.com/embassy-rs/embassy", rev = "7703f47c1ecac029f603033b7977d9a2becef48c" } |
| 110 | ---- | 110 | ---- |
| 111 | 111 | ||
| 112 | There are a few other dependencies we need to build the project, but fortunately they’re much simpler to install. Copy their lines from the example `Cargo.toml` to the the `[dependencies]` section in the new `Cargo.toml`: | 112 | There are a few other dependencies we need to build the project, but fortunately they’re much simpler to install. Copy their lines from the example `Cargo.toml` to the `[dependencies]` section in the new `Cargo.toml`: |
| 113 | 113 | ||
| 114 | [source,toml] | 114 | [source,toml] |
| 115 | ---- | 115 | ---- |
diff --git a/embassy-net-esp-hosted/README.md b/embassy-net-esp-hosted/README.md index 524231e6c..e1afb1483 100644 --- a/embassy-net-esp-hosted/README.md +++ b/embassy-net-esp-hosted/README.md | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # ESP-Hosted `embassy-net` integration | 1 | # ESP-Hosted `embassy-net` integration |
| 2 | 2 | ||
| 3 | [`embassy-net`](https://crates.io/crates/embassy-net) integration for Espressif SoCs running the the [ESP-Hosted](https://github.com/espressif/esp-hosted) stack. | 3 | [`embassy-net`](https://crates.io/crates/embassy-net) integration for Espressif SoCs running the [ESP-Hosted](https://github.com/espressif/esp-hosted) stack. |
| 4 | 4 | ||
| 5 | See [`examples`](https://github.com/embassy-rs/embassy/tree/main/examples/nrf52840) directory for usage examples with the nRF52840. | 5 | See [`examples`](https://github.com/embassy-rs/embassy/tree/main/examples/nrf52840) directory for usage examples with the nRF52840. |
| 6 | 6 | ||
diff --git a/embassy-rp/src/float/div.rs b/embassy-rp/src/float/div.rs index aff0dcb07..87d1e38e5 100644 --- a/embassy-rp/src/float/div.rs +++ b/embassy-rp/src/float/div.rs | |||
| @@ -40,7 +40,7 @@ where | |||
| 40 | // using a wrong divisor, but we'll restore the divisor and result ourselves correctly. | 40 | // using a wrong divisor, but we'll restore the divisor and result ourselves correctly. |
| 41 | // This sets DIRTY, so any interruptor will save the state. | 41 | // This sets DIRTY, so any interruptor will save the state. |
| 42 | sio.div().udividend().write_value(dividend); | 42 | sio.div().udividend().write_value(dividend); |
| 43 | // If we are interrupted here, the the interruptor may start the calculation using | 43 | // If we are interrupted here, the interruptor may start the calculation using |
| 44 | // incorrectly signed inputs, but we'll restore the result ourselves. | 44 | // incorrectly signed inputs, but we'll restore the result ourselves. |
| 45 | // This sets DIRTY, so any interruptor will save the state. | 45 | // This sets DIRTY, so any interruptor will save the state. |
| 46 | sio.div().udivisor().write_value(divisor); | 46 | sio.div().udivisor().write_value(divisor); |
diff --git a/embassy-rp/src/intrinsics.rs b/embassy-rp/src/intrinsics.rs index 5b9c127ba..69d5d92de 100644 --- a/embassy-rp/src/intrinsics.rs +++ b/embassy-rp/src/intrinsics.rs | |||
| @@ -335,10 +335,9 @@ core::arch::global_asm!( | |||
| 335 | // result ourselves correctly. This sets DIRTY, so any interruptor will | 335 | // result ourselves correctly. This sets DIRTY, so any interruptor will |
| 336 | // save the state. | 336 | // save the state. |
| 337 | "str r3, [r2, #0x060]", // DIV_UDIVIDEND | 337 | "str r3, [r2, #0x060]", // DIV_UDIVIDEND |
| 338 | // If we are interrupted here, the the interruptor may start the | 338 | // If we are interrupted here, the interruptor may start the calculation |
| 339 | // calculation using incorrectly signed inputs, but we'll restore the | 339 | // using incorrectly signed inputs, but we'll restore the result ourselves. |
| 340 | // result ourselves. This sets DIRTY, so any interruptor will save the | 340 | // This sets DIRTY, so any interruptor will save the state. |
| 341 | // state. | ||
| 342 | "str r4, [r2, #0x064]", // DIV_UDIVISOR | 341 | "str r4, [r2, #0x064]", // DIV_UDIVISOR |
| 343 | // If we are interrupted here, the interruptor will have restored | 342 | // If we are interrupted here, the interruptor will have restored |
| 344 | // everything but the quotient may be wrongly signed. If the calculation | 343 | // everything but the quotient may be wrongly signed. If the calculation |
diff --git a/embassy-stm32/src/sdmmc/mod.rs b/embassy-stm32/src/sdmmc/mod.rs index ed344c412..8af2f8381 100644 --- a/embassy-stm32/src/sdmmc/mod.rs +++ b/embassy-stm32/src/sdmmc/mod.rs | |||
| @@ -910,7 +910,7 @@ impl<'d, T: Instance, Dma: SdmmcDma<T> + 'd> Sdmmc<'d, T, Dma> { | |||
| 910 | } | 910 | } |
| 911 | 911 | ||
| 912 | async fn get_scr(&mut self, card: &mut Card) -> Result<(), Error> { | 912 | async fn get_scr(&mut self, card: &mut Card) -> Result<(), Error> { |
| 913 | // Read the the 64-bit SCR register | 913 | // Read the 64-bit SCR register |
| 914 | Self::cmd(Cmd::set_block_length(8), false)?; // CMD16 | 914 | Self::cmd(Cmd::set_block_length(8), false)?; // CMD16 |
| 915 | Self::cmd(Cmd::app_cmd(card.rca << 16), false)?; | 915 | Self::cmd(Cmd::app_cmd(card.rca << 16), false)?; |
| 916 | 916 | ||
diff --git a/embassy-stm32/src/usart/buffered.rs b/embassy-stm32/src/usart/buffered.rs index 7bbe01a00..b0e0aed80 100644 --- a/embassy-stm32/src/usart/buffered.rs +++ b/embassy-stm32/src/usart/buffered.rs | |||
| @@ -747,7 +747,7 @@ impl<'d> Drop for BufferedUartRx<'d> { | |||
| 747 | unsafe { | 747 | unsafe { |
| 748 | state.rx_buf.deinit(); | 748 | state.rx_buf.deinit(); |
| 749 | 749 | ||
| 750 | // TX is inactive if the the buffer is not available. | 750 | // TX is inactive if the buffer is not available. |
| 751 | // We can now unregister the interrupt handler | 751 | // We can now unregister the interrupt handler |
| 752 | if state.tx_buf.len() == 0 { | 752 | if state.tx_buf.len() == 0 { |
| 753 | self.info.interrupt.disable(); | 753 | self.info.interrupt.disable(); |
| @@ -768,7 +768,7 @@ impl<'d> Drop for BufferedUartTx<'d> { | |||
| 768 | unsafe { | 768 | unsafe { |
| 769 | state.tx_buf.deinit(); | 769 | state.tx_buf.deinit(); |
| 770 | 770 | ||
| 771 | // RX is inactive if the the buffer is not available. | 771 | // RX is inactive if the buffer is not available. |
| 772 | // We can now unregister the interrupt handler | 772 | // We can now unregister the interrupt handler |
| 773 | if state.rx_buf.len() == 0 { | 773 | if state.rx_buf.len() == 0 { |
| 774 | self.info.interrupt.disable(); | 774 | self.info.interrupt.disable(); |
diff --git a/embassy-usb/src/class/web_usb.rs b/embassy-usb/src/class/web_usb.rs index 10ebf318d..405944f14 100644 --- a/embassy-usb/src/class/web_usb.rs +++ b/embassy-usb/src/class/web_usb.rs | |||
| @@ -140,7 +140,7 @@ pub struct WebUsb<'d, D: Driver<'d>> { | |||
| 140 | impl<'d, D: Driver<'d>> WebUsb<'d, D> { | 140 | impl<'d, D: Driver<'d>> WebUsb<'d, D> { |
| 141 | /// Builder for the WebUSB capability implementation. | 141 | /// Builder for the WebUSB capability implementation. |
| 142 | /// | 142 | /// |
| 143 | /// Pass in a USB `Builder`, a `State`, which holds the the control endpoint state, and a `Config` for the WebUSB configuration. | 143 | /// Pass in a USB `Builder`, a `State`, which holds the control endpoint state, and a `Config` for the WebUSB configuration. |
| 144 | pub fn configure(builder: &mut Builder<'d, D>, state: &'d mut State<'d>, config: &'d Config<'d>) { | 144 | pub fn configure(builder: &mut Builder<'d, D>, state: &'d mut State<'d>, config: &'d Config<'d>) { |
| 145 | let mut func = builder.function(USB_CLASS_VENDOR, USB_SUBCLASS_NONE, USB_PROTOCOL_NONE); | 145 | let mut func = builder.function(USB_CLASS_VENDOR, USB_SUBCLASS_NONE, USB_PROTOCOL_NONE); |
| 146 | let mut iface = func.interface(); | 146 | let mut iface = func.interface(); |
diff --git a/embassy-usb/src/lib.rs b/embassy-usb/src/lib.rs index 93dd6b4d2..0638fd0a2 100644 --- a/embassy-usb/src/lib.rs +++ b/embassy-usb/src/lib.rs | |||
| @@ -120,7 +120,7 @@ pub trait Handler { | |||
| 120 | /// # Returns | 120 | /// # Returns |
| 121 | /// | 121 | /// |
| 122 | /// If you didn't handle this request (for example if it's for the wrong interface), return | 122 | /// If you didn't handle this request (for example if it's for the wrong interface), return |
| 123 | /// `None`. In this case, the the USB stack will continue calling the other handlers, to see | 123 | /// `None`. In this case, the USB stack will continue calling the other handlers, to see |
| 124 | /// if another handles it. | 124 | /// if another handles it. |
| 125 | /// | 125 | /// |
| 126 | /// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack | 126 | /// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack |
| @@ -142,7 +142,7 @@ pub trait Handler { | |||
| 142 | /// # Returns | 142 | /// # Returns |
| 143 | /// | 143 | /// |
| 144 | /// If you didn't handle this request (for example if it's for the wrong interface), return | 144 | /// If you didn't handle this request (for example if it's for the wrong interface), return |
| 145 | /// `None`. In this case, the the USB stack will continue calling the other handlers, to see | 145 | /// `None`. In this case, the USB stack will continue calling the other handlers, to see |
| 146 | /// if another handles it. | 146 | /// if another handles it. |
| 147 | /// | 147 | /// |
| 148 | /// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack | 148 | /// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack |
