Skip to content

Commit 4b809af

Browse files
committed
fix: #3760 - typo in docs
Signed-off-by: Krzysztof Królczyk <[email protected]>
1 parent f09277b commit 4b809af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pages/layer_by_layer.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The async version looks very similar to the HAL version, apart from a few minor
7676
* The peripheral initialization is done by the main macro, and is handed to the main task.
7777
* Before checking the button state, the application is awaiting a transition in the pin state (low -> high or high -> low).
7878

79-
When `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.
79+
When `button.wait_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.
8080

8181
The 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.
8282

0 commit comments

Comments
 (0)