-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit 71e2fd2
FreeRTOS: allow override startup hooks default implementation
The default behaviour is do nothing: scheduler has to be started manually by the user.
Use AUTOSTART_FREERTOS if you declare tasks in your setup() and use them in loop().
Use EARLY_AUTOSTART_FREERTOS if you need the scheduler to be already running in setup().
Libraries that need to use threads/semaphores during setup() (for example, to implement the usual
myObj.begin(); <- this starts a thread
while (!myObj) { <- this becomes true when the thread is unlocked
delay();
}
will need to declare EARLY_START_FREERTOS_HOOK in one of their cpp files1 parent 00692e6 commit 71e2fd2
File tree
3 files changed
+53
-0
lines changed- cores/arduino
- libraries/Arduino_FreeRTOS/src
- portable/FSP
3 files changed
+53
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 | + | ||
68 | + | ||
67 | 69 |
| |
68 | 70 |
| |
69 | 71 |
| |
| |||
111 | 113 |
| |
112 | 114 |
| |
113 | 115 |
| |
116 | + | ||
114 | 117 |
| |
118 | + | ||
115 | 119 |
| |
116 | 120 |
| |
117 | 121 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
30 | 51 |
| |
31 | 52 |
| |
32 | 53 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 | + | ||
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| |||
225 | 226 |
| |
226 | 227 |
| |
227 | 228 |
| |
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | ||
233 | + | ||
234 | + | ||
235 | + | ||
236 | + | ||
237 | + | ||
238 | + | ||
239 | + | ||
240 | + | ||
241 | + | ||
242 | + | ||
243 | + | ||
244 | + | ||
245 | + | ||
246 | + | ||
247 | + | ||
248 | + | ||
249 | + | ||
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | ||
254 | + | ||
255 | + | ||
228 | 256 |
| |
229 | 257 |
| |
230 | 258 |
| |
|
0 commit comments