aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Tomlin <[email protected]>2024-04-19 21:36:03 -0400
committerGitHub <[email protected]>2024-04-19 21:36:03 -0400
commitb03f23ab648ecba0a98d8c39cbda7081b6179701 (patch)
treedf78de4adb79514c45411b53ed6774029af7d937 /docs
parentb2f7ce99d6f74383ed104353e284baf5e3e0aeb3 (diff)
Update sharing_peripherals.adoc
Diffstat (limited to 'docs')
-rw-r--r--docs/modules/ROOT/pages/sharing_peripherals.adoc2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/modules/ROOT/pages/sharing_peripherals.adoc b/docs/modules/ROOT/pages/sharing_peripherals.adoc
index fcba0e27b..000a7b1de 100644
--- a/docs/modules/ROOT/pages/sharing_peripherals.adoc
+++ b/docs/modules/ROOT/pages/sharing_peripherals.adoc
@@ -8,6 +8,7 @@ The following examples shows different ways to use the on-board LED on a Raspber
8 8
9Using mutual exclusion is the simplest way to share a peripheral. 9Using mutual exclusion is the simplest way to share a peripheral.
10 10
11TIP: The depenencies you need to run this example link:/book/dev/basic_application.html#_the_cargo_toml[can be found here].
11[,rust] 12[,rust]
12---- 13----
13use defmt::*; 14use defmt::*;
@@ -77,6 +78,7 @@ To indicate that the pin will be set to an Output. The `AnyPin` could have been
77 78
78A channel is another way to ensure exclusive access to a resource. Using a channel is great in the cases where the access can happen at a later point in time, allowing you to enqueue operations and do other things. 79A channel is another way to ensure exclusive access to a resource. Using a channel is great in the cases where the access can happen at a later point in time, allowing you to enqueue operations and do other things.
79 80
81TIP: The depenencies you need to run this example link:/book/dev/basic_application.html#_the_cargo_toml[can be found here].
80[,rust] 82[,rust]
81---- 83----
82use defmt::*; 84use defmt::*;