@@ -23,7 +23,7 @@ for this section
2323 - starts the Embassy scheduler
2424 - defines the ` main ` task
2525- ` #[embassy_executor::task] ` - defines a new task
26- - ` pool_size ` -is * optional* and defines how many identical tasks can be spawned
26+ - ` pool_size ` -is * optional* and defines how many identical tasks can be spawned at the same time
2727- the ` main ` task
2828 - initializes the the ` led `
2929 - spawns the ` led_blink ` task (adds to the scheduler)
@@ -67,9 +67,11 @@ async fn main(spawner: Spawner) {
6767
6868<div >
6969
70- - unless awaited, ` async ` functions are not executed
70+ - unless awaited, ` async ` functions are not executed [ ^ async ]
7171- tasks have to use ` .await ` in loops, otherwise they block the scheduler
7272
73+ [ ^ async ] : they are executed, but do not execute what you expect
74+
7375</div >
7476
7577
@@ -98,10 +100,10 @@ async fn main(spawner: Spawner) {
98100</div >
99101
100102---
101- ---
103+
102104# How it works
103105
104- <div align =" center " >
106+ <div align =" center " style = " background : white ; padding : 5 px " class = " rounded " >
105107<img src =" ./executor.svg " class =" rounded " >
106108</div >
107109
@@ -114,6 +116,7 @@ async fn main(spawner: Spawner) {
114116---
115117layout: two-cols
116118---
119+
117120# Priority Tasks
118121
119122<style >
@@ -143,7 +146,7 @@ layout: two-cols
143146<v-click >
144147
145148### RP2
146- - use ` SWI_IRQ_01 ` and ` SWI_IRQ_01 `
149+ - use ` SWI_IRQ_0 ` and ` SWI_IRQ_1 `
147150
148151</v-click >
149152
@@ -156,7 +159,7 @@ layout: two-cols
156159
157160:: right ::
158161
159- <div align =" center " >
162+ <div align =" center " style = " background : white ; padding : 5 px " class = " rounded " >
160163<img src =" ./isr_executor.svg " class =" rounded " >
161164</div >
162165
@@ -172,7 +175,7 @@ layout: two-cols
172175}
173176</style >
174177
175- <div align =" center " >
178+ <div align =" center " style = " background : white ; padding : 5 px " class = " rounded " >
176179<img src =" ./isr_executor.svg " class =" rounded " >
177180</div >
178181
0 commit comments