diff options
| author | kalkyl <[email protected]> | 2024-07-08 17:16:35 +0200 |
|---|---|---|
| committer | kalkyl <[email protected]> | 2024-07-08 17:16:35 +0200 |
| commit | 028ca55f9ca3bfa2e4aa99b16bc0e0e29241fe70 (patch) | |
| tree | 34d2b7fff1f4c8e39f2ebd387c7c0ff0db546328 /docs/pages/sharing_peripherals.adoc | |
| parent | 87f66343493a5ae99f0f9b27602b96524111c94a (diff) | |
Add more docs and cross-links
Diffstat (limited to 'docs/pages/sharing_peripherals.adoc')
| -rw-r--r-- | docs/pages/sharing_peripherals.adoc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/pages/sharing_peripherals.adoc b/docs/pages/sharing_peripherals.adoc index 6bcd56b01..ebd899c4e 100644 --- a/docs/pages/sharing_peripherals.adoc +++ b/docs/pages/sharing_peripherals.adoc | |||
| @@ -126,3 +126,5 @@ async fn toggle_led(control: Sender<'static, ThreadModeRawMutex, LedState, 64>, | |||
| 126 | 126 | ||
| 127 | 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 | 127 | 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 |
| 128 | that the operation is completed before continuing to do other work in your task. | 128 | that the operation is completed before continuing to do other work in your task. |
| 129 | |||
| 130 | An example showcasing more methods for sharing link:https://github.com/embassy-rs/embassy/blob/main/examples/rp/src/bin/sharing.rs[can be found here]. \ No newline at end of file | ||
