aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ. Neuschäfer <[email protected]>2024-06-27 16:48:31 +0200
committerJ. Neuschäfer <[email protected]>2024-06-27 16:48:48 +0200
commite3b495908cda737cadad6ad645d19f0cb2fe98b2 (patch)
tree02c675b308d1b0db75741bd1ed6dea2fdedca00f
parenta2acb3e3dceddb4752f8fb1c17aa65e1959a2180 (diff)
docs: Fix mention of ExtiInput
The struct is called ExtiInput, not ExtiButton.
-rw-r--r--docs/pages/layer_by_layer.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pages/layer_by_layer.adoc b/docs/pages/layer_by_layer.adoc
index f87291c20..7852d27b7 100644
--- a/docs/pages/layer_by_layer.adoc
+++ b/docs/pages/layer_by_layer.adoc
@@ -76,7 +76,7 @@ The async version looks very similar to the HAL version, apart from a few minor
76* The peripheral initialization is done by the main macro, and is handed to the main task. 76* The peripheral initialization is done by the main macro, and is handed to the main task.
77* Before checking the button state, the application is awaiting a transition in the pin state (low -> high or high -> low). 77* Before checking the button state, the application is awaiting a transition in the pin state (low -> high or high -> low).
78 78
79When `button.await_for_any_edge().await` is called, the executor will pause the main task and put the microcontroller in sleep mode, unless there are other tasks that can run. Internally, the Embassy HAL has configured the interrupt handler for the button (in `ExtiButton`), so that whenever an interrupt is raised, the task awaiting the button will be woken up. 79When `button.await_for_any_edge().await` is called, the executor will pause the main task and put the microcontroller in sleep mode, unless there are other tasks that can run. Internally, the Embassy HAL has configured the interrupt handler for the button (in `ExtiInput`), so that whenever an interrupt is raised, the task awaiting the button will be woken up.
80 80
81The minimal overhead of the executor and the ability to run multiple tasks "concurrently" combined with the enormous simplification of the application, makes `async` a great fit for embedded. 81The minimal overhead of the executor and the ability to run multiple tasks "concurrently" combined with the enormous simplification of the application, makes `async` a great fit for embedded.
82 82