Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Move freertos hook between setup() and loop()
This gives the chance for users to create new threads/queues in setup() without race conditions
  • Loading branch information
facchinm committed Dec 9, 2024
commit 3a3cfe47b5ad977dd1cbf73eb8cad299edd02f37
2 changes: 1 addition & 1 deletion cores/arduino/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ void arduino_main(void)
Serial.begin(115200);
#endif
startAgt();
start_freertos_on_header_inclusion();
setup();
start_freertos_on_header_inclusion();
while (1)
{
loop();
Expand Down
1 change: 0 additions & 1 deletion libraries/Arduino_FreeRTOS/src/portable/FSP/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ static void prvTaskExitError(void);
#endif

void loop_thread_func(void* arg) {
setup();
while (1)
{
loop();
Expand Down