mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Merge pull request #2972 from cacharle/patch-1
Fix typo in sharing_peripherals.adoc
This commit is contained in:
commit
c74acae7c0
@ -125,4 +125,4 @@ async fn toggle_led(control: Sender<'static, ThreadModeRawMutex, LedState, 64>,
|
|||||||
----
|
----
|
||||||
|
|
||||||
This example replaces the Mutex with a Channel, and uses another task (the main loop) to drive the LED. The advantage of this approach is that only a single task references the peripheral, separating concerns. However, using a Mutex has a lower overhead and might be necessary if you need to ensure
|
This example replaces the Mutex with a Channel, and uses another task (the main loop) to drive the LED. The advantage of this approach is that only a single task references the peripheral, separating concerns. However, using a Mutex has a lower overhead and might be necessary if you need to ensure
|
||||||
that the operation is ecompleted before continuing to do other work in your task.
|
that the operation is completed before continuing to do other work in your task.
|
||||||
|
Loading…
Reference in New Issue
Block a user