diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-04-26 20:28:34 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-26 20:28:34 +0000 |
| commit | f2c95b86e77e5d8bbc3360f7a9467596e7f38e2a (patch) | |
| tree | 0474d4f8dd78ed7d7e21351af3bd3c43f3ef3eff /docs/modules/ROOT | |
| parent | 5b0735688df0da67b5fe2f1b96090f1eba83c884 (diff) | |
| parent | 7b47d53de2fa15882354189d6ba69e0141cc11ec (diff) | |
Merge pull request #2844 from Dygear/doc-updates
Link back to Cargo.toml section.
Diffstat (limited to 'docs/modules/ROOT')
| -rw-r--r-- | docs/modules/ROOT/pages/sharing_peripherals.adoc | 2 | ||||
| -rw-r--r-- | docs/modules/ROOT/pages/time_keeping.adoc | 2 |
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 | ||
| 9 | Using mutual exclusion is the simplest way to share a peripheral. | 9 | Using mutual exclusion is the simplest way to share a peripheral. |
| 10 | 10 | ||
| 11 | TIP: 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 | ---- |
| 13 | use defmt::*; | 14 | use defmt::*; |
| @@ -77,6 +78,7 @@ To indicate that the pin will be set to an Output. The `AnyPin` could have been | |||
| 77 | 78 | ||
| 78 | A 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 | A 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 | ||
| 81 | TIP: 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 | ---- |
| 82 | use defmt::*; | 84 | use 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 | ||
| 17 | An example of a delay is provided as follows: | 17 | An example of a delay is provided as follows: |
| 18 | 18 | ||
| 19 | TIP: 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 | ---- |
| 21 | use embassy::executor::{task, Executor}; | 22 | use embassy::executor::{task, Executor}; |
| @@ -40,6 +41,7 @@ that expect a generic delay implementation to be provided. | |||
| 40 | 41 | ||
| 41 | An example of how this can be used: | 42 | An example of how this can be used: |
| 42 | 43 | ||
| 44 | TIP: 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 | ---- |
| 45 | use embassy::executor::{task, Executor}; | 47 | use embassy::executor::{task, Executor}; |
