Skip to content

Commit ec2b833

Browse files
committed
Document stack head room probing.
1 parent 842ce17 commit ec2b833

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

examples/SchedulerBlinkMax/SchedulerBlinkMax.ino

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,27 @@
1717
*
1818
* @section Description
1919
* This Arduino sketch uses the Scheduler library.
20-
* Blink with max number of pins; 64 bytes per task.
20+
* Blink with max number of pins; 64 (128) bytes per task.
21+
*
22+
* @section Serial Monitor Output (Arduino Mega 2560/IDE 1.8.1)
23+
*
24+
* SchedulerBlinkMax: started
25+
* 7:setup::task=68
26+
* 7:setup::main:stack=44
27+
* 7:loop::i=0
28+
* 8:loop::main:stack=44
29+
* 9:loop::min:stack=64
30+
* 1007:loop::i=1
31+
* 1007:loop::main:stack=27
32+
* 1008:loop::min:stack=31
33+
* 2008:loop::i=2
34+
* 2008:loop::main:stack=27
35+
* 2008:loop::min:stack=15
36+
* ...
37+
*
38+
* Note: It takes two iteration (seconds) to get a stable values.
39+
* The stack head room is slowly reduced depending on call depth
40+
* when ISR occurs.
2141
*/
2242

2343
#include <Scheduler.h>

0 commit comments

Comments
 (0)