aboutsummaryrefslogtreecommitdiff
path: root/docs/modules/ROOT/pages/basic_application.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/modules/ROOT/pages/basic_application.adoc')
-rw-r--r--docs/modules/ROOT/pages/basic_application.adoc15
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/modules/ROOT/pages/basic_application.adoc b/docs/modules/ROOT/pages/basic_application.adoc
index d56cb5e1d..53aaa3d7d 100644
--- a/docs/modules/ROOT/pages/basic_application.adoc
+++ b/docs/modules/ROOT/pages/basic_application.adoc
@@ -3,8 +3,6 @@
3So you've got one of the xref:examples.adoc[examples] running, but what now? Let's go through a simple Embassy application for the nRF52 DK to understand it better. 3So you've got one of the xref:examples.adoc[examples] running, but what now? Let's go through a simple Embassy application for the nRF52 DK to understand it better.
4 4
5 5
6== The Cargo.toml
7
8== The main 6== The main
9 7
10=== Rust Nightly 8=== Rust Nightly
@@ -73,3 +71,16 @@ What happens when the `blinker` task have been spawned and main returns? Well, t
73. Runs the executor spawning the main task 71. Runs the executor spawning the main task
74 72
75There is also a way to run the executor without using the macro, in which case you have to create the `Executor` instance yourself. 73There is also a way to run the executor without using the macro, in which case you have to create the `Executor` instance yourself.
74
75== The Cargo.toml
76
77The project definition needs to contain the embassy dependencies:
78
79[source,toml]
80----
81include::example$examples/nrf/Cargo.toml[lines="9..11"]
82----
83
84Depending on your microcontroller, you may need to replace `embassy-nrf` with something else (`embassy-stm32` for STM32. Remember to update feature flags as well).
85
86In this particular case, the nrf52840 chip is selected, and the RTC1 peripheral is used as the time driver.