diff options
Diffstat (limited to 'docs/modules/ROOT/pages/basic_application.adoc')
| -rw-r--r-- | docs/modules/ROOT/pages/basic_application.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/modules/ROOT/pages/basic_application.adoc b/docs/modules/ROOT/pages/basic_application.adoc index c2849927a..46a375c86 100644 --- a/docs/modules/ROOT/pages/basic_application.adoc +++ b/docs/modules/ROOT/pages/basic_application.adoc | |||
| @@ -30,7 +30,7 @@ After a bit of import declaration, the tasks run by the application should be de | |||
| 30 | 30 | ||
| 31 | [source,rust] | 31 | [source,rust] |
| 32 | ---- | 32 | ---- |
| 33 | include::example$basic/src/main.rs[lines="16..24"] | 33 | include::example$basic/src/main.rs[lines="18..27"] |
| 34 | ---- | 34 | ---- |
| 35 | 35 | ||
| 36 | An embassy task must be declared `async`, and may NOT take generic arguments. In this case, we are handed the LED that should be blinked and the interval of the blinking. | 36 | An embassy task must be declared `async`, and may NOT take generic arguments. In this case, we are handed the LED that should be blinked and the interval of the blinking. |
| @@ -45,7 +45,7 @@ The `Spawner` is the way the main application spawns other tasks. The `Periphera | |||
| 45 | 45 | ||
| 46 | [source,rust] | 46 | [source,rust] |
| 47 | ---- | 47 | ---- |
| 48 | include::example$basic/src/main.rs[lines="26..30"] | 48 | include::example$basic/src/main.rs[lines="28..-1"] |
| 49 | ---- | 49 | ---- |
| 50 | 50 | ||
| 51 | 51 | ||
| @@ -64,7 +64,7 @@ The project definition needs to contain the embassy dependencies: | |||
| 64 | 64 | ||
| 65 | [source,toml] | 65 | [source,toml] |
| 66 | ---- | 66 | ---- |
| 67 | include::example$basic/Cargo.toml[lines="8..10"] | 67 | include::example$basic/Cargo.toml[lines="8..9"] |
| 68 | ---- | 68 | ---- |
| 69 | 69 | ||
| 70 | Depending on your microcontroller, you may need to replace `embassy-nrf` with something else (`embassy-stm32` for STM32. Remember to update feature flags as well). | 70 | Depending on your microcontroller, you may need to replace `embassy-nrf` with something else (`embassy-stm32` for STM32. Remember to update feature flags as well). |
