aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-04-26 20:28:34 +0000
committerGitHub <[email protected]>2024-04-26 20:28:34 +0000
commitf2c95b86e77e5d8bbc3360f7a9467596e7f38e2a (patch)
tree0474d4f8dd78ed7d7e21351af3bd3c43f3ef3eff /docs
parent5b0735688df0da67b5fe2f1b96090f1eba83c884 (diff)
parent7b47d53de2fa15882354189d6ba69e0141cc11ec (diff)
Merge pull request #2844 from Dygear/doc-updates
Link back to Cargo.toml section.
Diffstat (limited to 'docs')
-rw-r--r--docs/modules/ROOT/pages/sharing_peripherals.adoc2
-rw-r--r--docs/modules/ROOT/pages/time_keeping.adoc2
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/modules/ROOT/pages/sharing_peripherals.adoc b/docs/modules/ROOT/pages/sharing_peripherals.adoc
index fcba0e27b..784239fb1 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: Dependencies needed 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: Dependencies needed 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::*;
diff --git a/docs/modules/ROOT/pages/time_keeping.adoc b/docs/modules/ROOT/pages/time_keeping.adoc
index 5068216ed..17492a884 100644
--- a/docs/modules/ROOT/pages/time_keeping.adoc
+++ b/docs/modules/ROOT/pages/time_keeping.adoc
@@ -16,6 +16,7 @@ The `embassy::time::Timer` type provides two timing methods.
16 16
17An example of a delay is provided as follows: 17An example of a delay is provided as follows:
18 18
19TIP: Dependencies needed to run this example link:/book/dev/basic_application.html#_the_cargo_toml[can be found here].
19[,rust] 20[,rust]
20---- 21----
21use embassy::executor::{task, Executor}; 22use embassy::executor::{task, Executor};
@@ -40,6 +41,7 @@ that expect a generic delay implementation to be provided.
40 41
41An example of how this can be used: 42An example of how this can be used:
42 43
44TIP: Dependencies needed to run this example link:/book/dev/basic_application.html#_the_cargo_toml[can be found here].
43[,rust] 45[,rust]
44---- 46----
45use embassy::executor::{task, Executor}; 47use embassy::executor::{task, Executor};