File tree 2 files changed +4
-4
lines changed
libraries/ESP32/examples/ArduinoStackSize 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ uint16_t makeWord(uint8_t h, uint8_t l);
180
180
#define word (...) makeWord(__VA_ARGS__)
181
181
182
182
size_t getArduinoLoopTaskStackSize (void );
183
- #define SET_LOOPTASK_STACK_SIZE (sz ) size_t getArduinoLoopTaskStackSize () { return sz;}
183
+ #define SET_LOOP_TASK_STACK_SIZE (sz ) size_t getArduinoLoopTaskStackSize () { return sz;}
184
184
185
185
unsigned long pulseIn (uint8_t pin, uint8_t state, unsigned long timeout = 1000000L );
186
186
unsigned long pulseInLong (uint8_t pin, uint8_t state, unsigned long timeout = 1000000L );
Original file line number Diff line number Diff line change 6
6
This should be plenty for most general sketches.
7
7
8
8
There is a way to change the stack size of this task by using
9
- SET_LOOPTASK_STACK_SIZE (size);
9
+ SET_LOOP_TASK_STACK_SIZE (size);
10
10
It will bypass the default stack size of 8KB and allow the user to define a new size.
11
11
12
12
It is recommend this value to be higher than 8KB, for instance 16KB.
13
13
This increasing may be necessary for the sketches that use deep recursion for instance.
14
14
15
- In this example, you can verify it by changing or just commenting out SET_LOOPTASK_STACK_SIZE ();
15
+ In this example, you can verify it by changing or just commenting out SET_LOOP_TASK_STACK_SIZE ();
16
16
*/
17
17
18
18
#define ARDUINO_TASK_STACK_SIZE (16 *1024 ) // 16KB
19
19
20
20
// This sets Arduino Stack Size - comment this line to use default 8K stack size
21
- SET_LOOPTASK_STACK_SIZE (ARDUINO_TASK_STACK_SIZE);
21
+ SET_LOOP_TASK_STACK_SIZE (ARDUINO_TASK_STACK_SIZE);
22
22
23
23
void setup () {
24
24
Serial.begin (115200 );
You can’t perform that action at this time.
0 commit comments