-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Adds support to change LoopTask Stack size #6025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@SuGlider let's add one example that shows the usage :) |
+1 regarding adding an example. I think you can call some FreeRTOS function like |
Add to the docs as well. |
Besides the macro, are we going to add this configuration through the Arduino IDE Tools menu with some predefined options? |
Not really. This is niche usage. For all the default should be plenty. |
Done. Example commited. |
Summary
Arduino
setup()
andloop()
run under a Task with a fixed Stack size of 8KB.Users may want to change this size.
This PR adds this possibility by just adding a line of code, as for example:
Impact
None. It adds a new functionality to ESP32 Arduino.
If
ESP_LOOP_TASK_STACK_SIZE(newSize);
is not declared/used, it will compile the sketch with the default stack size of 8KB.Related links
fix #6010
#6010 (comment)
Thanks @igrr for the suggestion!