summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoli Arkhipenko <arkhipenko@hotmail.com>2016-02-02 23:33:21 -0500
committerAnatoli Arkhipenko <arkhipenko@hotmail.com>2016-02-03 23:40:50 -0500
commitc82cefce494ea962f46b3178dab240b7a8a3ae62 (patch)
tree0eddb6b04a4b09db0b8807b605f466f155003a15
parent73e5c9a810cf1210e3c1a849b9162a71400f48c3 (diff)
v2.1.0 - microsecond resolution, startNow()v2.1.0
* support for microsecond resolution * added Scheduler baseline start time reset method: startNow() * added Example #13 for microseconds resolution test
-rw-r--r--README30
-rw-r--r--examples/Scheduler_example02/Scheduler_example02.ino2
-rw-r--r--examples/Scheduler_example10_Benchmark/Scheduler_example10_Benchmark.ino20
-rw-r--r--examples/Scheduler_example13_Micros/Scheduler_example13_Micros.ino71
-rw-r--r--extras/TaskScheduler.docbin177152 -> 181248 bytes
-rw-r--r--extras/TaskScheduler.html5595
-rw-r--r--keywords.txt1
-rw-r--r--library.properties4
-rw-r--r--src/TaskScheduler.h119
9 files changed, 3022 insertions, 2820 deletions
diff --git a/README b/README
index 3ccaf87..51c2be3 100644
--- a/README
+++ b/README
@@ -1,9 +1,12 @@
Task Scheduler – cooperative multitasking for Arduino microcontrollers
Version 2.1.0: 2016-02-01
+
+If you find TaskScheduler useful for your Arduino project, please drop me an email: arkhipenko@hotmail.com
+----------------------------------------------------------------------------------------------------------
OVERVIEW:
A lightweight implementation of cooperative multitasking (task scheduling) supporting:
- 1. Periodic task execution (with dynamic execution period in milliseconds)
+ 1. Periodic task execution (with dynamic execution period in milliseconds or microseconds)
2. Number of iterations (n times)
3. Execution of tasks in predefined sequence
4. Dynamic change of task execution parameters (frequency, number of iterations, callback function)
@@ -18,9 +21,34 @@ Scheduling overhead: between 15 and 18 microseconds per scheduling pass (check t
For detailed functionality overview please refer to TaskScheduler documentation in the 'extras' folder.
=======================================================================================================
+Check out what TaskScheduler can do:
+====================================
+ Houston midi clock project - TaskScheduler with microseconds resolution
+ (by chaffneue: My first arduino project. It's a multi-master midi controller with a shared clock and
+ auto count in behaviour. Project files on github: https://github.com/chaffneue/houston
+ youtube: https://www.youtube.com/watch?v=QRof550TtXo)
+
+ Aurora Chaser Cubesat project, University of Sydney (Yay! TaskScheduler goes to space)
+ (by Jordan Jolly: http://52.35.220.33/blogs/jordan-jolly-cubesat--aero3670--blog)
+
+ Arduino Nano based Hexbug Scarab Robotic Spider
+ (by arkhipenko: http://www.instructables.com/id/Arduino-Nano-based-Hexbug-Scarab-Robotic-Spider/)
+
+ Wave your hand to control OWI Robotic Arm... no strings attached
+ (by arkhipenko: http://www.instructables.com/id/Wave-your-hand-to-control-OWI-Robotic-Arm-no-strin/)
+
+ APIS - Automated Plant Irrigation System
+ (by arkhipenko: http://www.instructables.com/id/APIS-Automated-Plant-Irrigation-System/)
+
+ Interactive Halloween Pumpkin
+ (by arkhipenko: http://www.instructables.com/id/Interactive-Halloween-Pumpkin/)
+
+
Changelog:
+=========
v2.1.0:
2016-02-01 - support for microsecond resolution
+ 2016-02-02 - added Scheduler baseline start time reset method: startNow()
v2.0.1:
2016-01-02 - bug fix: issue#11 Xtensa compiler (esp8266): Declaration of constructor does not match implementation
diff --git a/examples/Scheduler_example02/Scheduler_example02.ino b/examples/Scheduler_example02/Scheduler_example02.ino
index c76551a..377f9a8 100644
--- a/examples/Scheduler_example02/Scheduler_example02.ino
+++ b/examples/Scheduler_example02/Scheduler_example02.ino
@@ -65,6 +65,8 @@ void setup () {
Serial.println("Scheduler TEST");
delay(5000);
+
+ runner.startNow(); // set point-in-time for scheduling start
}
diff --git a/examples/Scheduler_example10_Benchmark/Scheduler_example10_Benchmark.ino b/examples/Scheduler_example10_Benchmark/Scheduler_example10_Benchmark.ino
index 05ebd42..4c5b4e0 100644
--- a/examples/Scheduler_example10_Benchmark/Scheduler_example10_Benchmark.ino
+++ b/examples/Scheduler_example10_Benchmark/Scheduler_example10_Benchmark.ino
@@ -10,7 +10,20 @@
* The test board is Arduino UNO 16MHz processor.
*
-
+TaskScheduler 2.1.0:
+No modifiers
+Duration=19869
+
+with SLEEP
+Duration=20058
+
+with status request:
+Duration=20058
+
+with time critical:
+Duration=27289
+
+
TaskScheduler 1.9.0:
No modifiers
Duration=15656
@@ -41,10 +54,11 @@ Duration=18423
//#define _TASK_TIMECRITICAL // Enable monitoring scheduling overruns
-#define _TASK_STATUS_REQUEST // Compile with support for StatusRequest functionality - triggering tasks on status change events in addition to time only
+//#define _TASK_STATUS_REQUEST // Compile with support for StatusRequest functionality - triggering tasks on status change events in addition to time only
//#define _TASK_WDT_IDS // Compile with support for wdt control points and task ids
//#define _TASK_LTS_POINTER // Compile with support for local task storage pointer
-#define _TASK_SLEEP_ON_IDLE_RUN
+//#define _TASK_SLEEP_ON_IDLE_RUN
+//#define _TASK_MICRO_RES
#include <TaskScheduler.h>
Scheduler ts;
diff --git a/examples/Scheduler_example13_Micros/Scheduler_example13_Micros.ino b/examples/Scheduler_example13_Micros/Scheduler_example13_Micros.ino
new file mode 100644
index 0000000..973750d
--- /dev/null
+++ b/examples/Scheduler_example13_Micros/Scheduler_example13_Micros.ino
@@ -0,0 +1,71 @@
+/**
+ * TaskScheduler Test of microsecond scheduling resolution
+ *
+ * Task 1 runs starting with 211 microseconds intervals, doubling the interval on every iteration
+ * until it wraps when interval reaches about 72 minutes mark
+ *
+ * Task 2 provides heartbeat at a steady 5 seconds intervals
+ *
+ */
+
+#define _TASK_MICRO_RES
+#include <TaskScheduler.h>
+
+#define T1_INIT (211L)
+
+Scheduler runner;
+// Callback methods prototypes
+void t1Callback();
+void t1OnDisable();
+void t2Callback();
+
+
+unsigned long t1_interval = T1_INIT;
+
+// Tasks
+Task t1(t1_interval, 1, &t1Callback, &runner, true, NULL, &t1OnDisable); //adding task to the chain on creation
+Task t2(5 * TASK_SECOND, TASK_FOREVER, &t2Callback, &runner, true); //adding task to the chain on creation
+
+
+
+void t1Callback() {
+ unsigned long t = micros();
+ Serial.print("t1: ");
+ Serial.println(t);
+}
+
+void t1OnDisable() {
+ t1_interval += t1_interval;
+ if (t1_interval < T1_INIT) t1_interval = T1_INIT;
+ t1.setInterval(t1_interval);
+ t1.restartDelayed();
+}
+
+void t2Callback() {
+ unsigned long t = micros();
+ Serial.print("t2: ");
+ Serial.print(t);
+ Serial.println(" heartbeat");
+}
+
+
+void setup () {
+ Serial.begin(115200);
+ Serial.println("Scheduler TEST Microsecond Resolution");
+
+ Serial.println("5 seconds delay");
+ delay(5000);
+
+ runner.startNow(); // This creates a new scheduling starting point for all ACTIVE tasks.
+ // PLEASE NOTE - THIS METHOD DOES NOT ACTIVATE TASKS, JUST RESETS THE START TIME
+ t1.delay(); // Tasks which need to start delayed, need to be delayed again after startNow();
+
+// Alternatively, tasks should be just enabled at the bottom of setup() method
+// runner.enableAll();
+// t1.delay();
+}
+
+
+void loop () {
+ runner.execute();
+}
diff --git a/extras/TaskScheduler.doc b/extras/TaskScheduler.doc
index e6e4f3e..b2f5380 100644
--- a/extras/TaskScheduler.doc
+++ b/extras/TaskScheduler.doc
Binary files differ
diff --git a/extras/TaskScheduler.html b/extras/TaskScheduler.html
index 5c5edc8..a3d31d3 100644
--- a/extras/TaskScheduler.html
+++ b/extras/TaskScheduler.html
@@ -1,107 +1,105 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD>
- <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
- <TITLE></TITLE>
- <META NAME="GENERATOR" CONTENT="LibreOffice 3.5 (Linux)">
- <META NAME="CREATED" CONTENT="20150206;16300000">
- <META NAME="CHANGEDBY" CONTENT="Anatoli Arkhipenko">
- <META NAME="CHANGED" CONTENT="20151223;16480000">
- <META NAME="Info 1" CONTENT="">
- <META NAME="Info 2" CONTENT="">
- <META NAME="Info 3" CONTENT="">
- <META NAME="Info 4" CONTENT="">
- <STYLE TYPE="text/css">
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <title></title>
+ <meta name="generator" content="LibreOffice 4.2.8.2 (Linux)">
+ <meta name="created" content="20150206;163000000000000">
+ <meta name="changedby" content="Anatoli Arkhipenko">
+ <meta name="changed" content="20160202;231400000000000">
+ <style type="text/css">
<!--
@page { margin: 0.79in }
- P { margin-bottom: 0.08in; direction: ltr; color: #000000; widows: 0; orphans: 0 }
- P.western { font-family: "Liberation Serif", "MS PMincho", serif; font-size: 12pt; so-language: en-US }
- P.cjk { font-family: "WenQuanYi Micro Hei", "MS Mincho"; font-size: 12pt; so-language: zh-CN }
- P.ctl { font-family: "Lohit Hindi", "MS Mincho"; font-size: 12pt; so-language: hi-IN }
- A:link { color: #0000ff }
+ p { margin-bottom: 0.08in; direction: ltr; color: #000000; widows: 0; orphans: 0 }
+ p.western { font-family: "Liberation Serif", "MS PMincho", serif; font-size: 12pt; so-language: en-US }
+ p.cjk { font-family: "WenQuanYi Micro Hei", "MS Mincho"; font-size: 12pt; so-language: zh-CN }
+ p.ctl { font-family: "Lohit Hindi", "MS Mincho"; font-size: 12pt; so-language: hi-IN }
+ a:link { color: #0000ff }
-->
- </STYLE>
-</HEAD>
-<BODY LANG="en-US" TEXT="#000000" LINK="#0000ff" BGCOLOR="#ffffff" DIR="LTR">
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT SIZE=4 STYLE="font-size: 15pt"><B>Task
-Scheduler</B></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>Cooperative
-multitasking for Arduino microcontrollers</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0in; padding-bottom: 0.01in; padding-left: 0in; padding-right: 0in">
-<FONT SIZE=2 STYLE="font-size: 11pt"><B>Version 2.0.0: 2015-12-23</B></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>OVERVIEW</B>:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">A lightweight
+ </style>
+</head>
+<body lang="en-US" text="#000000" link="#0000ff" bgcolor="#ffffff" dir="ltr" style="background: #ffffff">
+<p class="western" style="margin-bottom: 0in"><font size="4" style="font-size: 15pt"><b>Task
+Scheduler</b></font></p>
+<p class="western" style="margin-bottom: 0in"><b>Cooperative
+multitasking for Arduino microcontrollers</b></p>
+<p class="western" style="margin-bottom: 0in; border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0in; padding-bottom: 0.01in; padding-left: 0in; padding-right: 0in">
+<font size="2" style="font-size: 11pt"><b>Version 2.1.0: 2016-02-02</b></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>OVERVIEW</b>:</p>
+<p class="western" style="margin-bottom: 0in">A lightweight
implementation of cooperative multitasking (task scheduling)
-supporting:</P>
-<OL>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Periodic task
- execution (with dynamic execution period in milliseconds –
- frequency of execution)</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Number of
- iterations (limited or infinite number of iterations)</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Execution of tasks
- in predefined sequence</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Dynamic change of
+supporting:</p>
+<ol>
+ <li><p class="western" style="margin-bottom: 0in">Periodic task
+ execution, with dynamic execution period in <b>milliseconds
+ (</b>default<b>)</b> or <b>microseconds (</b>if explicitly enabled<b>)</b>
+ – frequency of execution</p>
+ <li><p class="western" style="margin-bottom: 0in">Number of
+ iterations (limited or infinite number of iterations)</p>
+ <li><p class="western" style="margin-bottom: 0in">Execution of tasks
+ in predefined sequence</p>
+ <li><p class="western" style="margin-bottom: 0in">Dynamic change of
task execution parameters (frequency, number of iterations, callback
- methods)</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Power saving via
- entering IDLE sleep mode when tasks are not scheduled to run</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Support for
- event-driven task invocation via Status Request object</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Support for task
- IDs and Control Points for error handling and watchdog timer</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Support for Local
+ methods)</p>
+ <li><p class="western" style="margin-bottom: 0in">Power saving via
+ entering IDLE sleep mode when tasks are not scheduled to run</p>
+ <li><p class="western" style="margin-bottom: 0in">Support for
+ event-driven task invocation via Status Request object</p>
+ <li><p class="western" style="margin-bottom: 0in">Support for task
+ IDs and Control Points for error handling and watchdog timer</p>
+ <li><p class="western" style="margin-bottom: 0in">Support for Local
Task Storage pointer (allowing use of same callback code for
- multiple tasks)</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Support for
- layered task prioritization</P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Scheduling overhead:
-between 15 and 18 microseconds per scheduling pass.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>TASK</B>:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">“Task” is a
-container concept that links together:</P>
-<OL>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Program code
- performing specific task activities (callback methods)</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Execution interval</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Number of
- execution iterations</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">(Optionally)
- Execution event (Status Request)</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">(Optionally)
- Pointer to a Local Task Storage area</P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>Tasks</B> perform
+ multiple tasks)</p>
+ <li><p class="western" style="margin-bottom: 0in">Support for
+ layered task prioritization</p>
+</ol>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Scheduling overhead:
+between 15 and 18 microseconds per scheduling pass (Arduino UNO rev 3
+@ 16MHz clock, single scheduler w/o prioritization)</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>TASK</b>:</p>
+<p class="western" style="margin-bottom: 0in">“Task” is a
+container concept that links together:</p>
+<ol>
+ <li><p class="western" style="margin-bottom: 0in">Program code
+ performing specific task activities (callback methods)</p>
+ <li><p class="western" style="margin-bottom: 0in">Execution interval</p>
+ <li><p class="western" style="margin-bottom: 0in">Number of
+ execution iterations</p>
+ <li><p class="western" style="margin-bottom: 0in">(Optionally)
+ Execution event (Status Request)</p>
+ <li><p class="western" style="margin-bottom: 0in">(Optionally)
+ Pointer to a Local Task Storage area</p>
+</ol>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>Tasks</b> perform
certain functions, which could require periodic or one-time
execution, update of specific variables, or waiting for specific
events. Tasks also could be controlling specific hardware, or
triggered by hardware interrupts.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">For execution purposes
-<B>Tasks</B> are linked into execution <B>chains</B>, which are
-processed by the <B>Scheduler</B> in the order they were added
-(linked together).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>Starting with
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">For execution purposes
+<b>Tasks</b> are linked into execution <b>chains</b>, which are
+processed by the <b>Scheduler</b> in the order they were added
+(linked together).</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>Starting with
version 2.0.0 TaskScheduler supports task prioritization. Please
refer to the specific chapter of this manual for details on layered
-prioritization. </B>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Each task performs its
+prioritization. </b>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Each task performs its
function via a callback method. Scheduler calls Task’s callback
method periodically until task is disabled or runs out of iterations.
In addition to “regular” callback method, two additional methods
@@ -111,43 +109,43 @@ is disabled. Those two special methods allow tasks to properly
initiate themselves for execution, and clean-up after execution is
over (E.g., setup pin modes on enable, and always bring pin level to
LOW at the end).
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Tasks are responsible
-for supporting <B>cooperative</B> <B>multitasking</B> by being “good
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Tasks are responsible
+for supporting <b>cooperative</b> <b>multitasking</b> by being “good
neighbors”, i.e., running their callback methods quickly in a
non-blocking way, and releasing control back to scheduler as soon as
possible.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>Scheduler</B> is
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>Scheduler</b> is
executing Tasks' callback methods in the order the tasks were added
to the chain, from first to last. Scheduler stops and exists after
processing the chain once in order to allow other statements in the
-main code of <B>loop()</B> method to run. This is referred to as a
-<B>“scheduling pass”.</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">(Normally, there is no
-need to have any other statements in the <B>loop</B>() method other
-than the Scheduler's <B>execute</B>() method).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>Below is the flowchart of a Task lifecycle:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><IMG SRC="TaskScheduler_html.png" NAME="graphics1" ALIGN=BOTTOM WIDTH=664 HEIGHT=517 BORDER=0></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>TaskScheduler</B>
+main code of <b>loop()</b> method to run. This is referred to as a
+<b>“scheduling pass”.</b></p>
+<p class="western" style="margin-bottom: 0in">(Normally, there is no
+need to have any other statements in the <b>loop</b>() method other
+than the Scheduler's <b>execute</b>() method).</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>Below is the flowchart of a Task lifecycle:</b></p>
+<p class="western" style="margin-bottom: 0in"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxkAAAQiCAYAAADH+TAfAAAACXBIWXMAAA7EAAAOxAGVKw4bAADX/0lEQVR4nOzdCVxVdf7/8U+Z5Zq4hLigYGCoqLghKihkVqOV5pRpWZlNqdmkNlPm9G/M30w5/Vu0/uVSmTXNr2wZy2ksK0tzRdzADRcUFBc0FSwlzaW/n29z7lwuF7jAgXsv9/V8PM5D7nbOF4Rzz/t+v5/v97JfLhIAAAAAsMll3m4AAAAAgKqFkAEAAADAVoQMAAAAALYiZAAAAACwFSEDAAAAgK0IGQAAAABsRcgAAAAAYCtCBgAAAABbETIAAAAA2IqQAQAAAMBWhAwAAAAAtiJkAAAAALAVIQMAAACArQgZAAAAAGxFyAAAAABgK0IGAAAAAFsRMgAAAADYipABAAAAwFaEDAAAAAC2ImQAAAAAsBUhAwAAAICtCBkAAAAAbEXIAAAAAGArQgYAAAAAWxEyAAAAANiKkAEAAADAVoQMAAAAALYiZAAAAACwFSEDAAAAgK0IGQAAAABsRcgAAAAAYCtCBgAAAABbETIAAAAA2IqQAQAAAMBWhAwAAAAAtiJkAAAAALAVIQMAAACArQgZAAAAAGxFyAAAAABgK0IGAAAAAFsRMgAAAADYipABAAAAwFaEDAAAAAC2ImQAAAAAsBUhAwAAAICtCBkAAAAAbEXIAAAAAGArQgYAAAAAWxEyAAAAANiKkAEAAADAVo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t1QjXP++NMFkKCgzEkoo/aB5E14zOciIiIqJx8fX3VJkni0kl8f/xGtGjnpzqJn0w/iCN7ElDtfzfQPSSYydxkUxhkEBEREVWQtow2MzMTsXFbsWr+Gni0boPwXmFcXks2iUEGERERkYlIdShJEpeNyJYxyCAiIiIiIpNikEFERERERCbFIIOIiIiIiEyKQQYREREREZkUgwwiIiIiIjIpBhlERERERGRSDDKIiIiIiMikGGQQEREREZFJMcggIiIiIiKTYpBBREREREQmxSCDiIiIiIhMikEGERERERGZFIMMojK6fPkyEhMT9R4GERGZMVdXV7UR2SoGGURltH37dhVorFq1Su+hEBGRmZKLUefOndN7GES6YZBBVEbXr1/HzJkzERoaqvdQiIjITN1xxx16D4FIVwwyiIiIiIjIpBhkEBERERGRSTHIICIiIiIik2KQQVQOYWFheg+ByOyMHTtW5SsRERExyCAqh+joaCZ+ExmJiYnBlClT9B4GERGZCQYZRERERERkUgwyiIiIiIjIpBhkEBERERGRSTHIICIiIiIik2KQQUREREREJsUgg4iIiIiITIpBBhERERERmRSDDCIiIiIiMikGGUREREREZFIMMoiIiIiIyKQYZBARERERkUkxyCAiIiIiIpNikEFERERERCbFIIOIiIiIiEyKQQYREREREZkUgwwiIiIiIjIpBhlERERERGRSDDKIiIiIiMikGGQQEREREZFJMcggIiIiIiKTYpBBREREREQmxSCDiIiIiIhMikEGUQkWLFiAL7/8Mt9tY8eOhYODg/p66NChePrpp/UYGhEREZFZYpBBVAJfX18888wz+W5LSkoyfO3s7Mwgg4iIiMgIgwyiEgQEBKhA4tixY7fdZ2dnh48++kiHURERERGZLwYZRKWwZMkS9OzZ87bbx40bZ1g2RURERES3MMggKoV7770Xjo6OyMrKMtwmsxhTpkzRcVRERERE5olBBlEpLV26NN9shsxi2Nvb6zgiIiIiIvPEIIOolIxnM6pXr85ZDCIiIqIiMMggKgNJ8h44cCD++c9/chaDiIiIqAgMMqjU5s6bh6xTp/Qehu7atm2L7OxszmTkcWzcGKMjI/UeBhEREZkZBhlUahJg9B/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ldlTngl3M/Ltwgsj9qPNt4tLlYrq/xPYp98TAAAA3iK2J/zwww+Fuwnw8ujIkeFuAgAAAKJAxIYMAAAAANGJkAEAAADAKkIGAAAAAKsIGQAAAACsImQAAAAAsIqQAQAAAMAqQgYAAAAAqwgZAAAAAKwiZAAAAACwipABAAAAwCpCBgAAAACrCBkAAAAArCJkAAAAALCKkAEAAADAKkIGAAAAAKsIGQAAAACsImQAAAAAsIqQAQAAAMAqQgYAAAAAqwgZAAAAAKwiZAAAAACwipABAAAAwCpCBgAAAACrCBkAAAAArCJkAAAAALCKkAEAAADAKkIGAAAAAKsIGQAAAACsImQAAAAAsIqQAQAAAMAqQgYAAAAAqwgZAAAAAKwiZAAAAACwipABAAAAwCpCBgAAAACrCBkAAAAArCJkAAAAALCKkAEAAADAKkIGAAAAAKsIGQAAAACsImQAAAAAsIqQAQAAAMAqQgYAAAAAqwgZAAAAAKwiZAAAAACwipABAAAAwCpCBgAAAACrCBkAAAAArCJkAAAAALCKkAEAAADAKkIGAAAAAKsIGQAAAACsImQAAAAAsIqQAQAAAMAqQgYAAAAAqwgZAAAAAKwiZAAAAACwipABAAAAwCpCBgAAAACrCBkAAAAArCJkAAAAALCKkAEAAADAKkIGAAAAAKsIGQAAAACsImQAAAAAsIqQAQAAAMAqQgYAAAAAqwgZAAAAAKwiZAAAAACwipABAAAAwCpCBgAAAACrCBkAAAAArCJkAAAAALCKkAEAAADAKkIGAAAAAKsIGQAAAACsImQAAAAAsIqQAQAAAMAqQgYAAAAAqwgZAAAAAKwiZAAAAACwipABAAAAwCpCBgAAAACrCBkAAAAArCJkAAAAALCKkAEAAADAKkIGAAAAAKsIGQAAAACsImQAAAAAsIqQAQAAAMAqQgYAAAAAqwgZAAAAAKwiZAAAAACwipABAAAAwCpCBgAAAACrCBkAAAAArPr/wUsVjSCfiXgAAAAASUVORK5CYII=" name="Image1" align="bottom" width="664" height="517" border="0"></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>TaskScheduler</b>
library maybe compiled with different compilation controls
enabled/disabled. This is a way to limit TaskScheduler functionality
(and size) for specific purpose (sketch). This is achieved by
-defining specific #<B>define</B> parameters <I>before</I>
-TaskScheduler.h header file. Specifically:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">If compiled with
-<FONT FACE="Courier New, monospace">_TASK_SLEEP_ON_IDLE_RUN</FONT>
+defining specific #<b>define</b> parameters <i>before</i>
+TaskScheduler.h header file. Specifically:</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">If compiled with
+<font face="Courier New, monospace">_TASK_SLEEP_ON_IDLE_RUN</font>
enabled, the scheduler will place processor into IDLE sleep mode (for
approximately 1 ms, as the timer interrupt will wake it up), after
what is determined to be an “idle” pass. An Idle Pass is a pass
@@ -156,109 +154,129 @@ callback methods. This is done to avoid repetitive idle passes
through the chain when no tasks need to be executed. If any of the
tasks in the chain always requires immediate execution (aInterval =
0), then there will be no IDLE sleep between task's callback method
-execution.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>NOTE: </B>Task
-Scheduler uses <B>millis()</B> to determine if tasks are ready to be
-invoked. Therefore, if you put your device to any “deep” sleep
-mode disabling timer interrupts, the <B>millis()</B> count will be
-suspended, leading to effective suspension of scheduling. Upon wake
-up, active tasks need to be re-enabled, which will effectively reset
-their internal time scheduling variables to the new value of
-<B>millis(). </B>Time spent in deep sleep mode should be considered
-“frozen”, i.e., if a task was scheduled to run in 1 second from
-now, and device was put to sleep for 5 minutes, upon wake up, the
-task will still be scheduled 1 second from the time of wake up.
-Executing <B>enable() </B>method on this tasks will make it run as
-soon as possible. This is a concern only for tasks which are required
-to run in a truly periodical manner (in absolute time terms).
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">In addition to
-time-only (<B>millis</B>() only) invocation, tasks can be scheduled
-to wait on an event employing StatusRequest objects (more about
-Status Requests later).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Consider a scenario
+execution.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>NOTE: </b>Task
+Scheduler uses <b>millis()</b> (or <b>micros()</b>) to determine if
+tasks are ready to be invoked. Therefore, if you put your device to
+any “deep” sleep mode disabling timer interrupts, the
+<b>millis()/micros()</b> count will be suspended, leading to
+effective suspension of scheduling. Upon wake up, active tasks need
+to be re-enabled, which will effectively reset their internal time
+scheduling variables to the new value of <b>millis()/micros(). </b>Time
+spent in deep sleep mode should be considered “frozen”, i.e., if
+a task was scheduled to run in 1 second from now, and device was put
+to sleep for 5 minutes, upon wake up, the task will still be
+scheduled 1 second from the time of wake up. Executing <b>enable()
+</b>method on this tasks will make it run as soon as possible. This
+is a concern only for tasks which are required to run in a truly
+periodical manner (in absolute time terms).
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">In addition to
+time-only (<b>millis()/micros</b>() only) invocation, tasks can be
+scheduled to wait on an event employing StatusRequest objects (more
+about Status Requests later).</p>
+<p class="western" style="margin-bottom: 0in">Consider a scenario
when one task (t1) is performing a function which affects execution
of many tasks (t2, t3). In this case the task t1 will “signal”
completion of its function via Status Request object. Tasks t2 and t3
are “waiting” on the same Status Request object. As soon as
-status request completes, t2 and t3 are activated.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Alternative scenario is
+status request completes, t2 and t3 are activated.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Alternative scenario is
the ne task (t1) and waiting for the completion of a number of tasks
(t2, t3). When done, t2 and t3 signal completion of their functions,
t1 is invoked.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Please see the code
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Please see the code
examples at the end of this document, and included with the library
-package for details.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>COMPILE PARAMETERS:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">This library could be
-compiled in several configurations.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Parameters (<B>#define</B>s)
+package for details.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>COMPILE PARAMETERS:</b></p>
+<p class="western" style="margin-bottom: 0in">This library could be
+compiled in several configurations.</p>
+<p class="western" style="margin-bottom: 0in">Parameters (<b>#define</b>s)
defining what functionality should or should not be included need be
-defined before the library header file in the body of arduino sketch.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">#define
-<B>_TASK_TIMECRITICAL</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">...will compile the
-library with time critical tracking option enabled.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Time critical option
+defined before the library header file in the body of Arduino sketch.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">#define <b>_TASK_MICRO_RES</b></p>
+<p class="western" style="margin-bottom: 0in">...will compile the
+library with microsecond scheduling resolution, instead of default
+millisecond resolution.</p>
+<p class="western" style="margin-bottom: 0in">All time parameters for
+execution interval, delay, etc. will be treated as <b>microseconds</b>,
+instead of milliseconds.
+</p>
+<p class="western" style="margin-bottom: 0in"><b>NOTE: </b>Sleep mode
+<b>SLEEP_MODE_IDLE</b> (see below) is automatically <b>disabled</b>
+for microsecond resolution. Time constants <b>TASK_SECOND,
+TASK_MINUTE</b> and <b>TASK_HOUR</b> are adjusted for microsecond
+duration.
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">#define
+<b>_TASK_TIMECRITICAL</b></p>
+<p class="western" style="margin-bottom: 0in">...will compile the
+library with time critical tracking option enabled.</p>
+<p class="western" style="margin-bottom: 0in">Time critical option
keeps track when current execution took place relative to when it was
scheduled, and where next execution time of the task falls. Two
methods provide this information.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>Task::getStartDelay()
-</B>method: return number of milliseconds between current system time
-(millis) and point in time when the task was scheduled to start. A
-value of 0 (zero) indicates that task started right on time per
-schedule.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>Task::getOverrun()</B>
-method: If <B>getOverrun </B>returns a negative value, this Task’s
-next execution time point is <I>already</I> in the past, and task is
+</p>
+<p class="western" style="margin-bottom: 0in"><b>Task::getStartDelay()
+</b>method: return number of milliseconds (or microseconds) between
+current system time (millis/micros) and point in time when the task
+was scheduled to start. A value of 0 (zero) indicates that task
+started right on time per schedule.
+</p>
+<p class="western" style="margin-bottom: 0in"><b>Task::getOverrun()</b>
+method: If <b>getOverrun </b>returns a negative value, this Task’s
+next execution time point is <i>already</i> in the past, and task is
behind schedule. This most probably means that either task’s
callback method's runtime is too long, or the execution interval is
-too short (and therefore schedule is too aggressive).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">A positive value
+too short (and therefore schedule is too aggressive).</p>
+<p class="western" style="margin-bottom: 0in">A positive value
indicates that task is on schedule, and callback methods have enough
time to finish before the next scheduled pass.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">#define
-<B>_TASK_SLEEP_ON_IDLE_RUN</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">...will compile the
-library with the <B>sleep</B> option enabled (AVR boards only).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">When enabled, scheduler
-will put the microcontroller into <B>SLEEP_MODE_IDLE</B> state if
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">#define
+<b>_TASK_SLEEP_ON_IDLE_RUN</b></p>
+<p class="western" style="margin-bottom: 0in">...will compile the
+library with the <b>sleep</b> option enabled (AVR boards only).</p>
+<p class="western" style="margin-bottom: 0in">When enabled, scheduler
+will put the microcontroller into <b>SLEEP_MODE_IDLE</b> state if
none of the tasks’ callback methods were activated during execution
-pass. <B>IDLE</B> state is interrupted by timers once every 1 ms.
+pass. <b>IDLE</b> state is interrupted by timers once every 1 ms.
Putting microcontroller to IDLE state helps conserve power. Device
in SLEEP_MODE_IDLE wakes up to all hardware and timer interrupts, so
-scheduling is kept current.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-#define <B>_TASK_STATUS_REQUEST</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">…will compile
+scheduling is kept current.</p>
+<p class="western" style="margin-bottom: 0in"><b>NOTE: </b>This
+compilation option is not available with the microsecond resolution
+option.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+#define <b>_TASK_STATUS_REQUEST</b></p>
+<p class="western" style="margin-bottom: 0in">…will compile
TaskScheduler with support for StatusRequest object. Status Requests
are objects allowing tasks to wait on an event, and signal event
completion to each other.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">#define <B>_TASK_WDT_IDS</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">…will compile
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">#define <b>_TASK_WDT_IDS</b></p>
+<p class="western" style="margin-bottom: 0in">…will compile
TaskScheduler with support for Task IDs and Control Points. Each task
can be (and is by default) assigned an ID, which could be used to
identify the task in case there is a problem with it. Furthermore
@@ -268,44 +286,44 @@ deal with external resources (sensors, serial communications,
anything hardware dependent) can be blocked (or hung), by failed
hardware. In this case, a watchdog timer could be employed to trap
such a failed task, and identify which one (by task id) and where in
-the task (by a control point) the problem is likely located.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>NOTE: </B>by
+the task (by a control point) the problem is likely located.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>NOTE: </b>by
default, talk IDs are assigned sequentially (1, 2, 3, …) to the
tasks as they are being created. Programmer can assign a specific
-task id. <B>Task ids are unsigned integers.</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Control points provide
+task id. <b>Task ids are unsigned integers.</b></p>
+<p class="western" style="margin-bottom: 0in">Control points provide
a way to identify potential problem points within a task. Control
-points are <B>unsigned integers </B>as well. Please note that there
+points are <b>unsigned integers </b>as well. Please note that there
is only one control point per task, and it is set to zero when the
task’s callback method is invoked (this is done to prevent “stray”
-control point from previous task(s) confusing the matters.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Example #7 contains a
+control point from previous task(s) confusing the matters.</p>
+<p class="western" style="margin-bottom: 0in">Example #7 contains a
test of task ID and control points functionality.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">#define
-<B>_TASK_LTS_POINTER</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">…will compile
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">#define
+<b>_TASK_LTS_POINTER</b></p>
+<p class="western" style="margin-bottom: 0in">…will compile
TaskScheduler with support for Local Task Storage pointer (LTS). LTS
is a generic (void*) pointer which could be set to reference a
variable or a structure specific to a particular task. A callback
method can get access to specific variables by getting reference to a
currently running task from the scheduler, and then casting (void*)
LTS pointer to the appropriate pointer type.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>NOTE: </B>above
-parameters are<B> DISABLED </B>by default, and need to be explicitly
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>NOTE: </b>above
+parameters are<b> DISABLED </b>by default, and need to be explicitly
enabled by placing appropriate #define statements in front of the
-#include statement for the TaskScheduler header file.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">#define <B>_TASK_PRIORITY</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in">…will compile
+#include statement for the TaskScheduler header file.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">#define <b>_TASK_PRIORITY</b></p>
+<p class="western" style="margin-bottom: 0in">…will compile
TaskScheduler with support for layered task prioritization. Task
prioritization is achieved by creating several schedulers, and
organizing them in priority layers. Tasks are assigned to schedulers
@@ -314,739 +332,739 @@ layers are evaluated for invocation more frequently, and are given
priority in execution in case of the scheduling coincidence. More
about layered prioritization in the API documentation and
TaskScheduler examples.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>TASK PRIORITY AND
-COOPERATIVE MULTITASKING:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Starting with version
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>TASK PRIORITY AND
+COOPERATIVE MULTITASKING:</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Starting with version
2.0.0 TaskScheduler supports task prioritization. Priority is
-associated with a <B>Scheduler</B>, not individual <B>Tasks</B>,
+associated with a <b>Scheduler</b>, not individual <b>Tasks</b>,
hence the concept of priority layers. Tasks subsequently are assigned
to schedulers corresponding to their desired priority. The lowest
-priority Scheduler is called “<B>base scheduler</B>” or “<B>base
-layer</B>”. Let’s call higher priority schedulers by their
+priority Scheduler is called “<b>base scheduler</b>” or “<b>base
+layer</b>”. Let’s call higher priority schedulers by their
priority number, with larger number corresponding to higher priority
of task execution.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Task prioritization is
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Task prioritization is
achieved by executing the entire chain of tasks of the higher
priority scheduler for every single step (task) of the lower priority
-chain. <B>Note</B> that actual callback method invocation depends on
-priority <B>and </B>the timing of task schedule. However, higher
+chain. <b>Note</b> that actual callback method invocation depends on
+priority <b>and </b>the timing of task schedule. However, higher
priority tasks are evaluated more frequently and are given priority
in case of scheduling collision.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">For most tasks
-TaskScheduler <B>does not need </B>task priority functionality.
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">For most tasks
+TaskScheduler <b>does not need </b>task priority functionality.
Prioritization requires additional scheduling overhead, and should be
-used only for critical tasks.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">A few points on that:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">1. Plain (non-layered)
+used only for critical tasks.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">A few points on that:</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">1. Plain (non-layered)
execution chain is simple and efficient. The main idea is to minimize
scheduling overhead by Scheduler going through the chain. Each
priority layer adds scheduling overhead to overall task chain
-execution. Let’s review 3 scenarios:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>I.
-Flat chain of 7 tasks:</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Scheduling
-evaluation sequence:</P>
-<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0.49in; margin-bottom: 0in">
-1 <FONT FACE="Wingdings"></FONT> 2 <FONT FACE="Wingdings"></FONT>
-3 <FONT FACE="Wingdings"></FONT> 4 <FONT FACE="Wingdings"></FONT>
-5 <FONT FACE="Wingdings"></FONT> 6 <FONT FACE="Wingdings"></FONT>
-7</P>
-<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Scheduling
-overhead:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">O
-= B * T = 7 * 18 = 126 microseconds,</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Where:</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">O
-– scheduling overhead</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">B
-– number of tasks in the base layer</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">T
+execution. Let’s review 3 scenarios:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>I.
+Flat chain of 7 tasks:</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Scheduling
+evaluation sequence:</p>
+<p class="western" align="center" style="margin-left: 0.49in; margin-bottom: 0in">
+1 <font face="Wingdings"></font> 2 <font face="Wingdings"></font>
+3 <font face="Wingdings"></font> 4 <font face="Wingdings"></font>
+5 <font face="Wingdings"></font> 6 <font face="Wingdings"></font>
+7</p>
+<p class="western" align="center" style="margin-left: 0.49in; margin-bottom: 0in">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Scheduling
+overhead:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">O
+= B * T = 7 * 18 = 126 microseconds,</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Where:</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">O
+– scheduling overhead</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">B
+– number of tasks in the base layer</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">T
– scheduling overhead of a single task execution evaluation
(currently with Arduino Uno running at 16 Mhz is between 15 and 18
-microseconds).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>II.
-Two priority layers of 7 tasks. </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B> </B>Tasks
-1, 2, 3, 4, 5 are base priority and 6, 7 are higher priority:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Scheduling
-evaluation sequence:</P>
-<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0.49in; margin-bottom: 0in">
-6 <FONT FACE="Wingdings"></FONT> 7 <FONT FACE="Wingdings"></FONT>
-1 <FONT FACE="Wingdings"></FONT> 6 <FONT FACE="Wingdings"></FONT>
-7 <FONT FACE="Wingdings"></FONT> 2 <FONT FACE="Wingdings"></FONT>
-6 <FONT FACE="Wingdings"></FONT> 7 <FONT FACE="Wingdings"></FONT>
-3 <FONT FACE="Wingdings"></FONT> 6 <FONT FACE="Wingdings"></FONT>
-7 <FONT FACE="Wingdings"></FONT> 4 <FONT FACE="Wingdings"></FONT>
-6 <FONT FACE="Wingdings"></FONT> 7 <FONT FACE="Wingdings"></FONT>
-5</P>
-<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Scheduling
-overhead:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">O
-= (B + B * P1) * T = (5 + 5 * 2) * 18 = 270 microseconds,</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Where:</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">O
-– scheduling overhead</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">B
-– number of tasks in the base layer</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">P1
-– number of tasks in the priority 1 layer</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">T
+microseconds).</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>II.
+Two priority layers of 7 tasks. </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b> </b>Tasks
+1, 2, 3, 4, 5 are base priority and 6, 7 are higher priority:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Scheduling
+evaluation sequence:</p>
+<p class="western" align="center" style="margin-left: 0.49in; margin-bottom: 0in">
+6 <font face="Wingdings"></font> 7 <font face="Wingdings"></font>
+1 <font face="Wingdings"></font> 6 <font face="Wingdings"></font>
+7 <font face="Wingdings"></font> 2 <font face="Wingdings"></font>
+6 <font face="Wingdings"></font> 7 <font face="Wingdings"></font>
+3 <font face="Wingdings"></font> 6 <font face="Wingdings"></font>
+7 <font face="Wingdings"></font> 4 <font face="Wingdings"></font>
+6 <font face="Wingdings"></font> 7 <font face="Wingdings"></font>
+5</p>
+<p class="western" align="center" style="margin-left: 0.49in; margin-bottom: 0in">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Scheduling
+overhead:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">O
+= (B + B * P1) * T = (5 + 5 * 2) * 18 = 270 microseconds,</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Where:</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">O
+– scheduling overhead</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">B
+– number of tasks in the base layer</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">P1
+– number of tasks in the priority 1 layer</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">T
– scheduling overhead of a single task execution evaluation
(currently with Arduino Uno running at 16 Mhz is between 15 and 18
-microseconds).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>III.
-Three priority layers of 7 tasks. </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B> </B>Tasks
+microseconds).</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>III.
+Three priority layers of 7 tasks. </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b> </b>Tasks
1, 2, 3, are base priority, 4, 5 are priority 1, and 6, 7 are
-priority 2:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Scheduling
-evaluation sequence:</P>
-<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0.49in; margin-bottom: 0in">
-6 <FONT FACE="Wingdings"></FONT> 7 <FONT FACE="Wingdings"></FONT>
-4 <FONT FACE="Wingdings"></FONT> 6 <FONT FACE="Wingdings"></FONT>
-7 <FONT FACE="Wingdings"></FONT> 5 <FONT FACE="Wingdings"></FONT>
-1 <FONT FACE="Wingdings"></FONT> 6 <FONT FACE="Wingdings"></FONT>
-7 <FONT FACE="Wingdings"></FONT> 4 <FONT FACE="Wingdings"></FONT>
-6 <FONT FACE="Wingdings"></FONT> 7 <FONT FACE="Wingdings"></FONT>
-5 <FONT FACE="Wingdings"></FONT> 2 <FONT FACE="Wingdings"></FONT>6
-<FONT FACE="Wingdings"></FONT> 7 <FONT FACE="Wingdings"></FONT>
-4 <FONT FACE="Wingdings"></FONT> 6 <FONT FACE="Wingdings"></FONT>
-7 <FONT FACE="Wingdings"></FONT> 5 <FONT FACE="Wingdings"></FONT>
+priority 2:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Scheduling
+evaluation sequence:</p>
+<p class="western" align="center" style="margin-left: 0.49in; margin-bottom: 0in">
+6 <font face="Wingdings"></font> 7 <font face="Wingdings"></font>
+4 <font face="Wingdings"></font> 6 <font face="Wingdings"></font>
+7 <font face="Wingdings"></font> 5 <font face="Wingdings"></font>
+1 <font face="Wingdings"></font> 6 <font face="Wingdings"></font>
+7 <font face="Wingdings"></font> 4 <font face="Wingdings"></font>
+6 <font face="Wingdings"></font> 7 <font face="Wingdings"></font>
+5 <font face="Wingdings"></font> 2 <font face="Wingdings"></font>6
+<font face="Wingdings"></font> 7 <font face="Wingdings"></font>
+4 <font face="Wingdings"></font> 6 <font face="Wingdings"></font>
+7 <font face="Wingdings"></font> 5 <font face="Wingdings"></font>
3
-</P>
-<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Scheduling
-overhead:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">O
+</p>
+<p class="western" align="center" style="margin-left: 0.49in; margin-bottom: 0in">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Scheduling
+overhead:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">O
= (B + B * P1 + B * P1 * P2) * T = (3 + 3 * 2 + 3 * 2 * 2) * 18 = 378
-microseconds,</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Where:</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">O
-– scheduling overhead</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">B
-– number of tasks in the base layer</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">P1
-– number of tasks in the priority 1 layer</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">P2
-– number of tasks in the priority 2 layer</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">T
+microseconds,</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Where:</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">O
+– scheduling overhead</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">B
+– number of tasks in the base layer</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">P1
+– number of tasks in the priority 1 layer</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">P2
+– number of tasks in the priority 2 layer</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">T
– scheduling overhead of a single task execution evaluation
(currently with Arduino Uno running at 16 Mhz is between 15 and 18
-microseconds).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Scheduling overhead of
+microseconds).</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Scheduling overhead of
a 3 layer prioritization approach is 3 times higher than that of a
-flat execution chain. <B>Do</B> evaluate if task prioritization is
-really required for your sketch.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">2. TaskScheduler is <B>NOT</B>
+flat execution chain. <b>Do</b> evaluate if task prioritization is
+really required for your sketch.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">2. TaskScheduler is <b>NOT</b>
a pre-emptive multi-tasking library. Nor is it a Real-Time OS. There
is no way to break execution of one task in favor of another.
Therefore callback methods require careful programming for
-cooperative behavior.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">This has, however,
+cooperative behavior.</p>
+<p class="western" style="margin-bottom: 0in">This has, however,
significant benefits: you don't need to worry about concurrency
inside the callback method, since only one callback method runs at a
time, and could not be interrupted. All resources are yours for that
period of time, no one can switch the value of variables (except
interrupt functions of course...), etc. It is a stable and
predictable environment, and it helps a lot with writing stable code.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">A number of things
-could be done instead of priorities:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">1. Schedule your
-critical tasks to run more frequently than the other tasks</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">. <BR>(Since you can
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">A number of things
+could be done instead of priorities:</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">1. Schedule your
+critical tasks to run more frequently than the other tasks</p>
+<p class="western" style="margin-bottom: 0in">. <br>(Since you can
control the interval, you could also change the task to run more or
-less frequently as the situation demands).</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">2. If one particular
+less frequently as the situation demands).</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">2. If one particular
callback routine is critical, create a couple of tasks referring to
-the same callback and &quot;sprinkle&quot; them around the chain:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"> <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Scheduler
-ts;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"> <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Task
-t1(20, TASK_FOREVER, &amp;callback1, &amp;ts);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"> <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Task
-t2(1000, TASK_FOREVER, &amp;callback2, &amp;ts);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"> <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Task
-t3(20, TASK_FOREVER, &amp;callback1, &amp;ts);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"> <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Task
-t4(1000, TASK_FOREVER, &amp;callback4, &amp;ts);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"> <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t3.delay(10);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Note that t1 and t3
+the same callback and &quot;sprinkle&quot; them around the chain:</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"> <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Scheduler
+ts;</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"> <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Task
+t1(20, TASK_FOREVER, &amp;callback1, &amp;ts);</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"> <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Task
+t2(1000, TASK_FOREVER, &amp;callback2, &amp;ts);</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"> <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Task
+t3(20, TASK_FOREVER, &amp;callback1, &amp;ts);</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"> <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Task
+t4(1000, TASK_FOREVER, &amp;callback4, &amp;ts);</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"> <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t3.delay(10);</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Note that t1 and t3
call the same callback method, and are shifted in time by 10 millis.
So effectively callback1 will be called every 10 millis, but would be
&quot;sandwiched&quot; between t2 and t4.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">3. Use short efficient
-callback methods written for cooperative multitasking.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">What that means is:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">a)
-<B>DO NOT</B> use Arduino's <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt"><B>delay</B></FONT></FONT><FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">()</FONT></FONT><FONT FACE="Andale Mono, MS Mincho">
-</FONT>function. It is blocking and will hold the entire chain.
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">3. Use short efficient
+callback methods written for cooperative multitasking.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">What that means is:</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">a)
+<b>DO NOT</b> use Arduino's <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt"><b>delay</b></font></font><font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">()</font></font><font face="Andale Mono, MS Mincho">
+</font>function. It is blocking and will hold the entire chain.
Instead break the callback method into two, switch the callback
method of the task where delay is necessary and delay the task by
that number of millis. You get your delay, and other tasks get a
-chance to run:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">instead
-of:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">delay(1000);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-more stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
+chance to run:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">instead
+of:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">delay(1000);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+more stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">do
-this:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback1() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.setCallback(&amp;callback2);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.delay(1000);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback2() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-more stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.setCallback(&amp;callback1);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">b)
-Same goes to <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt"><B>pulseIn</B></FONT></FONT><FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">()</FONT></FONT>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">do
+this:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback1() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.setCallback(&amp;callback2);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.delay(1000);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback2() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+more stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.setCallback(&amp;callback1);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">b)
+Same goes to <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt"><b>pulseIn</b></font></font><font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">()</font></font>
function. If you have to use it, set the timeout parameter such that
it is not a default 1 second. PulseIn functionality could be achieved
-via pin interrupts, and that solution is non-blocking.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">c)
+via pin interrupts, and that solution is non-blocking.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">c)
Do don run long loops (for or do/while) in you callback methods. Make
-the main arduino loop be the loop driver for you:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">instead
-of:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
+the main arduino loop be the loop driver for you:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">instead
+of:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">for(int
-i=0; i&lt;1000; i++) {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-stuff // one loop action</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">do
-this:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Task
-t1(TASK_IMMEDIATE, 1000, &amp;callback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">for(int
+i=0; i&lt;1000; i++) {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+stuff // one loop action</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">do
+this:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Task
+t1(TASK_IMMEDIATE, 1000, &amp;callback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">int
-i = t1.getRunCounter() -1;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-stuff // one loop action</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">or
-this:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Task
-t1(TASK_IMMEDIATE, 1000, &amp;callback, true, &amp;t1On);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">int
+i = t1.getRunCounter() -1;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+stuff // one loop action</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">or
+this:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Task
+t1(TASK_IMMEDIATE, 1000, &amp;callback, true, &amp;t1On);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">int
-i;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">bool
-t1On() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">i
-= 0;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">return
-true;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">int
+i;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">bool
+t1On() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">i
+= 0;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">return
+true;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-stuff // one loop action</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">i++;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<B>REMEMBER: you are already inside the loop - take advantage of it. </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">d)
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+stuff // one loop action</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">i++;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" align="center" style="margin-left: 0.49in; margin-bottom: 0in">
+<b>REMEMBER: you are already inside the loop - take advantage of it. </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">d)
Break long running callback methods into several shorter ones, and
-pass control from one to the other via <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt"><B>setCallback</B></FONT></FONT><FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">()
-</FONT></FONT>method:</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Task
-t1(TASK_IMMEDIATE, TASK_FAREVER, &amp;callback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
+pass control from one to the other via <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt"><b>setCallback</b></font></font><font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">()
+</font></font>method:</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Task
+t1(TASK_IMMEDIATE, TASK_FAREVER, &amp;callback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-do some stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.setCallback(&amp;callback_step2);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback_step2() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-do more stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.setCallback(&amp;callback_step3);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback_step3() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-do last part of the stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.setCallback(&amp;callback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.delay(1000);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">This
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+do some stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.setCallback(&amp;callback_step2);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback_step2() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+do more stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.setCallback(&amp;callback_step3);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback_step3() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+do last part of the stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.setCallback(&amp;callback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.delay(1000);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">This
will execute all parts of the callback function in three successive
steps, scheduled immediately, but allowing other tasks in the chain
to run. Notice that task is scheduled to run immediately, and 1
second period is achieved by delaying the task for 1000 millis at the
last step.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Alternatively
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Alternatively
you could schedule the task to run every 1000 millis and use
-<FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">forceNextIteration()</FONT></FONT>
-method in steps 1 and 2 (but not 3!)</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Task
-t1(1000, TASK_FOREVER, &amp;callback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
+<font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">forceNextIteration()</font></font>
+method in steps 1 and 2 (but not 3!)</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">Task
+t1(1000, TASK_FOREVER, &amp;callback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-do some stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.setCallback(&amp;callback_step2);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.forceNextIteration();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback_step2() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-do more stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.setCallback(&amp;callback_step3);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.forceNextIteration();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">void
-callback_step3() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">...
-do last part of the stuff</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">t1.setCallback(&amp;callback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">e)
-Compile the library with <FONT FACE="FreeMono, MS Mincho, monospace"><FONT SIZE=2 STYLE="font-size: 10pt"><B>_TASK_TIMECRITICAL</B></FONT></FONT>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+do some stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.setCallback(&amp;callback_step2);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.forceNextIteration();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback_step2() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+do more stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.setCallback(&amp;callback_step3);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.forceNextIteration();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">void
+callback_step3() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">...
+do last part of the stuff</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">t1.setCallback(&amp;callback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">e)
+Compile the library with <font face="FreeMono, MS Mincho, monospace"><font size="2" style="font-size: 10pt"><b>_TASK_TIMECRITICAL</b></font></font>
enabled and check if your tasks are falling behind schedule. If they
are - you need to optimize your code further (or maybe re-evaluate
your schedule). If they are not - all is well and you don't need to
@@ -1056,2080 +1074,2131 @@ gyroscope and accelerometer every 10 ms. The idea was to flash
onboard LED if any of the tasks fall behind. At 10 ms interval for
the gyro the LED does not flash, which means none of the tasks are
blocking the others from starting on time.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<FONT SIZE=4><B>API DOCUMENTATION:</B></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<FONT SIZE=4><B>TASKS:</B></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">CREATION:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>Task();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Default
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<font size="4" style="font-size: 14pt"><b>API DOCUMENTATION:</b></font></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<font size="4" style="font-size: 14pt"><b>TASKS:</b></font></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in">CREATION:</p>
+<p class="western" style="margin-bottom: 0in"><b>Task();</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Default
constructor.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Takes
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Takes
no parameters and creates a task that could be scheduled to run at
every scheduling pass indefinitely, but does not have a callback
method defined, so no code execution will actually take place.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">All
-tasks are created <B>disabled</B> by default.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>Task(unsigned long aInterval, long aIterations, void
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">All
+tasks are created <b>disabled</b> by default.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>Task(unsigned long aInterval, long aIterations, void
(*aCallback)(), Scheduler* aScheduler, bool aEnable, bool
-(*aOnEnable)(), void (*aOnDisable)())</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Constructor
+(*aOnEnable)(), void (*aOnDisable)())</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Constructor
with parameters.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Creates
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Creates
a task that is scheduled to run every &lt;aInterval&gt; milliseconds,
&lt;aIterations&gt; times, executing &lt;aCallback&gt; method on
every pass.
-</P>
-<OL>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">aInterval is in
- milliseconds (<B>default = 0)</B></P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">aIteration in
- number of times, -1 for indefinite execution (<B>default = -1)</B><BR><B>Note:
- </B>Tasks do not remember the number of iteration set initially.
+</p>
+<ol>
+ <li><p class="western" style="margin-bottom: 0in">aInterval is in
+ milliseconds (or microseconds) (<b>default = 0)</b></p>
+ <li><p class="western" style="margin-bottom: 0in">aIteration in
+ number of times, -1 for indefinite execution (<b>default = -1)</b><br><b>Note:
+ </b>Tasks do not remember the number of iteration set initially.
After the iterations are done, internal iteration counter is 0. If
you need to perform another set of iterations, you need to set the
- number of iterations again. <BR><B>Note: </B>Tasks which performed
+ number of iterations again. <br><b>Note: </b>Tasks which performed
all their iterations remain active.
- </P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">aCallback is a
- pointer to a void callback method without parameters (<B>default =
- NULL)</B></P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">aScheduler –
- <B>optional</B> reference to existing scheduler. If supplied (not
+ </p>
+ <li><p class="western" style="margin-bottom: 0in">aCallback is a
+ pointer to a void callback method without parameters (<b>default =
+ NULL)</b></p>
+ <li><p class="western" style="margin-bottom: 0in">aScheduler –
+ <b>optional</b> reference to existing scheduler. If supplied (not
NULL) this task will be appended to the task chain of the current
- scheduler). (<B>default = NULL)</B></P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">aEnable –
- <B>optional</B>. Value of <B>true </B>will create task enabled.
- (<B>default = false)</B></P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">aOnEnable is a
+ scheduler). (<b>default = NULL)</b></p>
+ <li><p class="western" style="margin-bottom: 0in">aEnable –
+ <b>optional</b>. Value of <b>true </b>will create task enabled.
+ (<b>default = false)</b></p>
+ <li><p class="western" style="margin-bottom: 0in">aOnEnable is a
pointer to a bool callback method without parameters, invoked when
- task is enabled. If OnEnable method returns <B>true</B>, task is
- enabled. If <B>OnEnable</B> method return <B>false</B>, task remains
- disabled (<B>default = NULL)</B></P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">aOnDisable is a
+ task is enabled. If OnEnable method returns <b>true</b>, task is
+ enabled. If <b>OnEnable</b> method return <b>false</b>, task remains
+ disabled (<b>default = NULL)</b></p>
+ <li><p class="western" style="margin-bottom: 0in">aOnDisable is a
pointer to a void callback method without parameters, invoked when
- task is disabled (<B>default = NULL)</B></P>
-</OL>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">All
-tasks are created <B>disabled</B> by default (unless <B>aEnable</B> =
-true). You have to explicitly enable the task for execution.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>NOTE:
-</B>OnEnable callback method is called immediately when task is
+ task is disabled (<b>default = NULL)</b></p>
+</ol>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">All
+tasks are created <b>disabled</b> by default (unless <b>aEnable</b> =
+true). You have to explicitly enable the task for execution.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
+</b>OnEnable callback method is called immediately when task is
enabled, which could be well ahead of the scheduled execution time of
the task. Please bear that in mind – other tasks, hardware, serial
interface may not even be initialized yet. It is always advisable to
explicitly enable tasks with OnEnable methods after all
-initialization methods completed (e.g., at the end of <B>setup</B>()
+initialization methods completed (e.g., at the end of <b>setup</b>()
method)
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Enabled
-task is scheduled for execution as soon as the Scheduler's <B>execute</B>()
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Enabled
+task is scheduled for execution as soon as the Scheduler's <b>execute</b>()
methods gets control. In order to delay first run of the task, use
-<B>enableDelayed</B> or <B>delay</B> method (for enabled tasks)
-method.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>Task(void (*aCallback)(), Scheduler* aScheduler, bool
-(*aOnEnable)(), void (*aOnDisable)())</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+<b>enableDelayed</b> or <b>delay</b> method (for enabled tasks)
+method.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>Task(void (*aCallback)(), Scheduler* aScheduler, bool
+(*aOnEnable)(), void (*aOnDisable)())</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
compiled with support for Status Request objects, this constructor
creates a Task for activation on event (since such tasks must run
-<B>waitFor() </B>method, their <I>interval</I>, <I>iteration</I> and
-<I>enabled</I> status will be set by that method (<I>to 0, 1 and
-false</I> respectively).</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>INFORMATION</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">The
+<b>waitFor() </b>method, their <i>interval</i>, <i>iteration</i> and
+<i>enabled</i> status will be set by that method (<i>to 0, 1 and
+false</i> respectively).</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>INFORMATION</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">The
following 3 “getter” methods return task status
(enabled/disabled), execution interval in milliseconds, number of
-<I><B>remaining</B></I> iterations.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>bool
-isEnabled() </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>unsigned
-long getInterval()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>long
-getIterations() </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>long getStartDelay()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-library is compiled with <FONT FACE="Courier New, monospace">_TASK_TIMECRITICAL</FONT>
+<i><b>remaining</b></i> iterations.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>bool
+isEnabled() </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>unsigned
+long getInterval()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>long
+getIterations() </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>long getStartDelay()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+library is compiled with <font face="Courier New, monospace">_TASK_TIMECRITICAL</font>
enabled, you can assess how much later the callback method was
invoked against when it was scheduled to be invoked. The return value
-of <B>getStartDelay () </B>method provides this information in
-milliseconds.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>long getOverrun()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-library is compiled with <FONT FACE="Courier New, monospace">_TASK_TIMECRITICAL</FONT>
+of <b>getStartDelay () </b>method provides this information in
+milliseconds (or microseconds).
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>long getOverrun()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+library is compiled with <font face="Courier New, monospace">_TASK_TIMECRITICAL</font>
enabled, tasks are monitored for “long running” scenario. A “long
running” task is a task that does not finish processing its
callback methods quickly, and thus creates a situation for itself and
other tasks where they don't run on a scheduled interval, but rather
“catch up” and are behind. When task scheduler sets the next
execution target time, it adds Task's execution interval to the
-previously scheduled execution time:</P>
-<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<B>next execution time = current execution scheduled time + task
-execution interval</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-<B>next execution time</B> happens to be already in the past (<B>next
-execution time</B> &lt; <B>millis()</B>), then task is considered
-<I><B>overrun</B></I>. <B>GetOverrun</B> method returns number of
+previously scheduled execution time:</p>
+<p class="western" align="center" style="margin-left: 0.49in; margin-bottom: 0in">
+<b>next execution time = current execution scheduled time + task
+execution interval</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+<b>next execution time</b> happens to be already in the past (<b>next
+execution time</b> &lt; <b>millis()</b>), then task is considered
+<i><b>overrun</b></i>. <b>GetOverrun</b> method returns number of
milliseconds between next execution time and current time. If the
-<B>value is negative</B>, the task has overrun (cut into the) next
+<b>value is negative</b>, the task has overrun (cut into the) next
execution interval by that many milliseconds.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Positive
-value indicate number of milliseconds of slack this task has for
-execution purposes.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>unsigned long
-getRunCounter()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Returns
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Positive
+value indicate number of milliseconds (or microseconds) of slack this
+task has for execution purposes.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>unsigned long
+getRunCounter()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Returns
the number of the current run. “Current run” is the number of
times a callback method has been invoked since the last time a task
-was enabled. <BR><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>NOTE:
-</B>The <B>runCounter</B> value is incremented <I>before</I> callback
-method is invoked. If a task is checking the <B>runCounter</B> value
+was enabled. <br><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
+</b>The <b>runCounter</b> value is incremented <i>before</i> callback
+method is invoked. If a task is checking the <b>runCounter</b> value
within its callback method, then the first run value is 1.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-task T1 is checking the <B>runCounter</B> value of another task (T2)
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+task T1 is checking the <b>runCounter</b> value of another task (T2)
, then value = 0 indicates that T2 has not been invoked yet, and
value = 1 indicates that T2 has run once.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>bool
-isFirstIteration()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Indicates
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>bool
+isFirstIteration()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Indicates
whether current pass is (or will be) a first iteration of the task.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>bool
-isLastIteration()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">For
-tasks with a l<I>imited number of iterations only</I>, indicates
+</p>
+<p class="western" style="margin-bottom: 0in"><b>bool
+isLastIteration()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">For
+tasks with a l<i>imited number of iterations only</i>, indicates
whether current pass is the last iteration.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>CONTROL:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void enable();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Enables
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>CONTROL:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void enable();</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Enables
the task, and schedules it for immediate execution (without delay) at
this or next scheduling pass depending on when the task was enabled.
Scheduler will execute the next pass without any delay because there
is a task which was enabled and requires execution.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>NOTE:
-</B>if task being enabled is not assigned to a scheduler and is not
-part of execution chain, then task <B>will not</B> be enabled.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>NOTE:
-</B>enable() invokes task’s <B>OnEnable</B> method (if not NULL)
-<B>immediately</B>, which can prepare task for execution. <B>OnEnable</B>
-must return a value of <B>true</B> for task to be enabled. If
-<B>OnEnable</B> returns <B>false</B>, task remains disabled.
-<B>OnEnable</B> is invoked every time <B>enable</B> is called,
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
+</b>if task being enabled is not assigned to a scheduler and is not
+part of execution chain, then task <b>will not</b> be enabled.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
+</b>enable() invokes task’s <b>OnEnable</b> method (if not NULL)
+<b>immediately</b>, which can prepare task for execution. <b>OnEnable</b>
+must return a value of <b>true</b> for task to be enabled. If
+<b>OnEnable</b> returns <b>false</b>, task remains disabled.
+<b>OnEnable</b> is invoked every time <b>enable</b> is called,
regardless if task is already enabled or not. Alignment to current
-millis() is performed after <B>OnEnable</B> exits, so any changes to
-the interval inside <B>OnEnable</B> is taken into consideration.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">TaskScheduler
+millis() is performed after <b>OnEnable</b> exits, so any changes to
+the interval inside <b>OnEnable</b> is taken into consideration.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">TaskScheduler
allows tasks to be added to the a Scheduler and enabled at the time
-of creation. <B>Be very careful</B> with such tasks – the <B>OnEnable
-</B>method will be executed immediately, while certain objects (i.e.,
-other Tasks, libraries) are not yet ready (e.g., <B>Wire.begin()</B>
+of creation. <b>Be very careful</b> with such tasks – the <b>OnEnable
+</b>method will be executed immediately, while certain objects (i.e.,
+other Tasks, libraries) are not yet ready (e.g., <b>Wire.begin()</b>
was not yet called), or hardware not yet activated (pins not set to
INPUT or OUTPUT).
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">It
-is very much recommended to to enable all tasks at the end of <B>setup()</B>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">It
+is very much recommended to to enable all tasks at the end of <b>setup()</b>
method after all initializations are done.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
you require immediate execution of already enabled task, use
-<B>forceNextIteratoin</B>() method instead of <B>enable</B>(): it
-achieves the result, but does not call <B>OnEnable</B> method.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>NOTE:</B>
-in the event <B>enable</B>() method is called inside the <B>OnEnable</B>
+<b>forceNextIteratoin</b>() method instead of <b>enable</b>(): it
+achieves the result, but does not call <b>OnEnable</b> method.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:</b>
+in the event <b>enable</b>() method is called inside the <b>OnEnable</b>
callback method (thus basically creating indefinte loop),
-TaskScheduler will only call <B>OnEnable</B> once (thus protecting
-the Task against <B>OnEnable</B> infinite loop).
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>bool enableIfNot();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Enables
+TaskScheduler will only call <b>OnEnable</b> once (thus protecting
+the Task against <b>OnEnable</b> infinite loop).
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>bool enableIfNot();</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Enables
the task only if it was previously disabled. Returns previous enable
-state: <B>true</B> if task was already enabled, and <B>false</B> if
-task was disabled. Since <B>enable() </B>schedules Task for execution
+state: <b>true</b> if task was already enabled, and <b>false</b> if
+task was disabled. Since <b>enable() </b>schedules Task for execution
immediately, this method provides a way to activate tasks and
schedule them for immediate execution only if they are not active
-already.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void delay();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Schedules
+already.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void delay();</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Schedules
the task for execution after a delay (aInterval), but does not change
the enabled/disabled status of the task.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>NOTE:
-</B>a delay of 0 (zero) will delay task for current execution
-interval. Use <B>forceNextIteration() </B>method to force execution
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
+</b>a delay of 0 (zero) will delay task for current execution
+interval. Use <b>forceNextIteration() </b>method to force execution
of the task’s callback during immediate next scheduling pass.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void
-forceNextIteration();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Schedules
-the task for execution during immediate next scheduling pass.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">The
-Task must be already <I>enabled</I> prior to this method.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note:
-</B>Task’s schedule is adjusted to run from this moment in time.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void
+</b><b>forceNextIteration</b><b>();</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Schedules
+the task for execution during immediate next scheduling pass.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">The
+Task must be already <i>enabled</i> prior to this method.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note:
+</b>Task’s schedule is adjusted to run from this moment in time.
For instance: if a task was running every 10 seconds: 10, 20, 30, ..,
-calling <B>forceNextIteration </B>at 44th second of task execution
-will make subsequent schedule look like: 44, 54, 64, 74, ..</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void
-enableDelayed();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Enables
+calling <b>forceNextIteration </b>at 44th second of task execution
+will make subsequent schedule look like: 44, 54, 64, 74, ..</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void
+enableDelayed();</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Enables
the task, and schedules it for execution after task's current
scheduling interval (aInterval).
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void enableDelayed
-(unsigned long aDelay);</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Enables
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void enableDelayed
+(unsigned long aDelay);</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Enables
the task, and schedules it for execution after a specific delay
-(aDelay, which maybe different from aInterval).
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void restart();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">For
-tasks with limited number of iterations only, <B>restart</B> method
+(aDelay, which may be different from aInterval).
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void restart();</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">For
+tasks with limited number of iterations only, <b>restart</b> method
will re-enable the task, set the number of iterations back to last
-set value, and schedule task for execution as soon as possible.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void restartDelayed
-(unsigned long aDelay);</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Same
-as <B>restart()</B> method, with the only difference being that Task
-is scheduled to run first iteration after a delay = <B>aDelay</B>
-milliseconds.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>bool disable();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Disables
+set value, and schedule task for execution as soon as possible.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void restartDelayed
+(unsigned long aDelay);</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Same
+as <b>restart()</b> method, with the only difference being that Task
+is scheduled to run first iteration after a delay = <b>aDelay</b>
+milliseconds (or microseconds).</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>bool disable();</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Disables
the task. Scheduler will not execute this task any longer, even if it
-remains in the chain. Task <B>can</B> be later re-enabled for
+remains in the chain. Task <b>can</b> be later re-enabled for
execution.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Return
-previous enabled state: <B>true</B> if task was enabled prior to
-calling disable, and <B>false</B> otherwise.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-not NULL, task’s <B>OnDisable</B> method is invoked <B>immediately</B>.
-<B>OnDisable</B> is invoked only if task was in enabled state.
-Calling <B>disable</B> 3 times for instance will invoke <B>OnDisable</B>
-only once.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void set(unsigned
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Return
+previous enabled state: <b>true</b> if task was enabled prior to
+calling disable, and <b>false</b> otherwise.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+not NULL, task’s <b>OnDisable</b> method is invoked <b>immediately</b>.
+<b>OnDisable</b> is invoked only if task was in enabled state.
+Calling <b>disable</b> 3 times for instance will invoke <b>OnDisable</b>
+only once.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void set(unsigned
long aInterval, long aIterations, void (*aCallback)() , bool
-(*aOnEnable)() , void (*aOnDisable)());</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Allows
+(*aOnEnable)() , void (*aOnDisable)());</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Allows
dynamic control of task execution parameters in one method call.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note</B><B>:
-</B>OnEnable and OnDisable parameters can be omitted. In that case
-they will be assigned to <B>NULL</B> and respective methods will no
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note</b><b>:
+</b>OnEnable and OnDisable parameters can be omitted. In that case
+they will be assigned to <b>NULL</b> and respective methods will no
longer be called. Therefore it is advisable to use either all five
parameters explicitly, or employ individual “setter” methods
below instead.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
Next five “setter” methods allow changes of individual task
execution control parameters.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>void
-setInterval (unsigned long aInterval) </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>void
-setIterations (long aIterations) </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>void
-setCallback (void (*aCallback)()) </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>void
-setOnEnable (bool (*aCallback)()) </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>void
-setOnDisable (void (*aCallback)()) </B>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>NOTE: </B>Next
-execution time calculation takes place <B>after</B> the callback
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>void
+setInterval (unsigned long aInterval) </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>void
+setIterations (long aIterations) </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>void
+setCallback (void (*aCallback)()) </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>void
+setOnEnable (bool (*aCallback)()) </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>void
+setOnDisable (void (*aCallback)()) </b>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>NOTE: </b>Next
+execution time calculation takes place <b>after</b> the callback
method is called, so new interval will be used immediately by the
scheduler. For the situations when one task is changing the interval
-parameter for the other, <B>setInterval</B> method calls <B>delay
-</B>explicitly to guarantee schedule change, however it <B>does not
-</B>enable the task if task is disabled.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>NOTE: </B>Tasks that
+parameter for the other, <b>setInterval</b> method calls <b>delay
+</b>explicitly to guarantee schedule change, however it <b>does not
+</b>enable the task if task is disabled.</p>
+<p class="western" style="margin-bottom: 0in"><b>NOTE: </b>Tasks that
ran through all their allocated iterations are disabled.
-<B>SetIterations()</B> method <B>DOES NOT</B> enable the task. Either
-<B>enable</B> explicitly, or use <B>restart</B> methods.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Please note that as a
-result execution of the taks is <B>delayed</B> by the provided
+<b>SetIterations()</b> method <b>DOES NOT</b> enable the task. Either
+<b>enable</b> explicitly, or use <b>restart</b> methods.
+</p>
+<p class="western" style="margin-bottom: 0in">Please note that as a
+result execution of the taks is <b>delayed</b> by the provided
interval. If immediate invocation is required, call
-<B>forceNextIteration</B>() method after setting a new interval.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>STATUS REQUEST
-METHODS:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>void waitFor(StatusRequest* aStatusRequest, unsigned long
-aInterval = 0, long aIterations = 1)</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>void waitForDelayed(StatusRequest* aStatusRequest, unsigned long
-aInterval = 0, long aIterations = 1)</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+<b>forceNextIteration</b>() method after setting a new interval.
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>STATUS REQUEST
+METHODS:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>void waitFor(StatusRequest* aStatusRequest, unsigned long
+aInterval = 0, long aIterations = 1)</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>void waitForDelayed(StatusRequest* aStatusRequest, unsigned long
+aInterval = 0, long aIterations = 1)</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
compiled with support for Status Requests, these methods make task
-wait for the completion of <B>aStatusRequest</B> event.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">By
-default <B>waitFor() </B>sets tasks interval to <B>0 (zero)</B> for
+wait for the completion of <b>aStatusRequest</b> event.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">By
+default <b>waitFor() </b>sets tasks interval to <b>0 (zero)</b> for
immediate execution when event happens, and also sets the number of
-<B>iterations to 1</B>. However, you can specify different interval
+<b>iterations to 1</b>. However, you can specify different interval
and number of iterations.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">By
-default <B>waitForDelayed() </B>sets tasks interval to a supplied
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">By
+default <b>waitForDelayed() </b>sets tasks interval to a supplied
value or (if omitted or zero) keeps the current interval, so delayed
execution will take place when the event happens. It also sets the
-number of <B>iterations to 1</B> by default if not supplied.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">When
+number of <b>iterations to 1</b> by default if not supplied.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">When
Status Request object completes, all tasks waiting on it are executed
-during next scheduling pass. Tasks waiting via <B>waitFor</B>()
-method are executed immediately. Tasks waiting via <B>waitForDelayed</B>()
+during next scheduling pass. Tasks waiting via <b>waitFor</b>()
+method are executed immediately. Tasks waiting via <b>waitForDelayed</b>()
method are activated, but executed after current or supplied interval
delay.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note:
-aStatusRequest</B> should be “activated” by calling <B>setWaiting()
-</B>method before making a task wait on it. Otherwise, the task will
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note:
+aStatusRequest</b> should be “activated” by calling <b>setWaiting()
+</b>method before making a task wait on it. Otherwise, the task will
execute immediately.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">The
-sequence of events to use Status Request object is as follows:</P>
-<OL>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Create a status
- request object</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Activate status
- request object (calling its <B>setWaiting</B>() method)</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Set up tasks to
- wait of the event completion</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Signal completion
- of event(s)</P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>StatusRequest*
-getStatusRequest()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Returns
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">The
+sequence of events to use Status Request object is as follows:</p>
+<ol>
+ <li><p class="western" style="margin-bottom: 0in">Create a status
+ request object</p>
+ <li><p class="western" style="margin-bottom: 0in">Activate status
+ request object (calling its <b>setWaiting</b>() method)</p>
+ <li><p class="western" style="margin-bottom: 0in">Set up tasks to
+ wait of the event completion</p>
+ <li><p class="western" style="margin-bottom: 0in">Signal completion
+ of event(s)</p>
+</ol>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>StatusRequest*
+getStatusRequest()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Returns
a StatusReqeust object this Task was waiting on.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>TASK ID, CONTROL POINTS METHODS:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>void setId(unsigned int aID);</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>TASK ID, CONTROL POINTS METHODS:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>void setId(unsigned int aID);</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
compiled with support for Task IDs, this method will set the task ID
explicitly.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Calling
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Calling
this method is not necessary as task IDs are assigned automatically
-during task creation: 1, 2, 3, …</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>unsigned int getId();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+during task creation: 1, 2, 3, …</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>unsigned int getId();</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
compiled with support for Task IDs, this method return current task’s
-ID.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>void setControlPoint (unsigned int aPoint);</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+ID.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>void setControlPoint (unsigned int aPoint);</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
compiled with support for Task IDs, this method will set a control
point in the task’s code. Control points are similar to “try…catch”
blocks, with control point ID specifying where in the code the “try”
part started, and a mechanism like watchdog timer providing the
-“catch” functionality.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>unsigned int getControlPoint()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+“catch” functionality.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>unsigned int getControlPoint()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
If compiled with support for Task IDs, this method will return
-currently set control point for this task.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>LOCAL TASK STORAGE
-METHODS:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>void setLtsPointer(void *aPtr);</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+currently set control point for this task.</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>LOCAL TASK STORAGE
+METHODS:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>void setLtsPointer(void *aPtr);</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
compiled with support for LTS, this method will set the task's local
-storage pointer.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>void *getLtsPointer();</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+storage pointer.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>void *getLtsPointer();</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
compiled with support for LTS, this method will return reference to
-the task's local storage.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note:
-</B>the value returned has type (void *), and needs to be re-cast
+the task's local storage.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note:
+</b>the value returned has type (void *), and needs to be re-cast
into appropriate pointer type. Please refer to example sketches for
implementation options.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>STATUS REQUEST:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>CREATION:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>StatusRequest()</B><BR><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Default
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>STATUS REQUEST:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>CREATION:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>StatusRequest()</b><br><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Default
constructor.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Takes
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Takes
no parameters. Creates Status Request object, which is assigned a
status of “completed” on creation.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void
-setWaiting(unsigned int aCount = 1)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Activates
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void
+setWaiting(unsigned int aCount = 1)</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Activates
Status Request object. By default each object is set to wait on one
-event only, however, if <B>aCount</B> is supplied, Status Request can
-wait on multiple events. For instance, <B>setWaiting(3)</B> will wait
+event only, however, if <b>aCount</b> is supplied, Status Request can
+wait on multiple events. For instance, <b>setWaiting(3)</b> will wait
on three signals. An example could be waiting for completion of
measurements from 3 sensors.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>bool signal(int
-aStatus)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Signals
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>bool signal(int
+aStatus)</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Signals
completion of the event to the Status Request object, and passes a
completion code, which could be interrogated later.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note:
-</B> passing a <B>negative</B> status code to the status request
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note:
+</b> passing a <b>negative</b> status code to the status request
object is considered reporting an error condition, and will complete
the status request regardless of how many outstanding signals it is
still waiting for.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note</B>:
-only the latest status code is kept.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>bool signalComplete
-(int aStatus)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Signals
-completion of <B>ALL</B> events to the Status Request object, and
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note</b>:
+only the latest status code is kept.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>bool signalComplete
+(int aStatus)</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Signals
+completion of <b>ALL</b> events to the Status Request object, and
passes a completion code, which could be interrogated later. The
status request completes regardless of how many events it is still
waiting on.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>bool pending() </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Returns
-<B>true</B> if status request is still waiting for event or events to
-happen.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>bool completed () </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Returns
-<B>true</B> if status has completed.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>int getStatus()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Returns
-the status code passed to the status request object by the <B>signal()
-</B>and <B>signalComplete() </B>methods.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Any
-<B>positive</B> number is considered a successful completion status.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">A
-0 (zero) is considered a default successful completion status.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Any
-<B>negative</B> number is considered an error code and unsuccessful
-completion of a request.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-inside: avoid; page-break-after: avoid">
-<FONT SIZE=4><B>TASK SCHEDULER:</B></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-inside: avoid; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-inside: avoid; page-break-after: avoid">
-<B>CREATION:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-inside: avoid; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>Scheduler()</B><BR><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Default
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>bool pending() </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Returns
+<b>true</b> if status request is still waiting for event or events to
+happen.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>bool completed () </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Returns
+<b>true</b> if status has completed.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>int getStatus()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Returns
+the status code passed to the status request object by the <b>signal()
+</b>and <b>signalComplete() </b>methods.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Any
+<b>positive</b> number is considered a successful completion status.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">A
+0 (zero) is considered a default successful completion status.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Any
+<b>negative</b> number is considered an error code and unsuccessful
+completion of a request.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-inside: avoid; page-break-after: avoid">
+<font size="4" style="font-size: 14pt"><b>TASK SCHEDULER:</b></font></p>
+<p class="western" style="margin-bottom: 0in; page-break-inside: avoid; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-inside: avoid; page-break-after: avoid">
+<b>CREATION:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-inside: avoid; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>Scheduler()</b><br><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Default
constructor.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Takes
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Takes
no parameters. Creates task scheduler with default parameters and an
empty task queue.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void init()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Initializes
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void init()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Initializes
the task queue and scheduler parameters, Executed as part of
-constructor, so don't need to be explicitly called after creation.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note:
-</B>be default (if compiled with <FONT FACE="Courier New, monospace">_TASK_TIMECRITICAL</FONT>
+constructor, so don't need to be explicitly called after creation.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note:
+</b>be default (if compiled with <font face="Courier New, monospace">_TASK_TIMECRITICAL</font>
enabled) scheduler is allowed to put processor to IDLE sleep mode. If
-this behavior was changed via <B>allowSleep()</B> method, <B>inti()
-</B>will <B>NOT</B> reset allow sleep particular parameter.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR><B>void
-addTask(Task&amp; aTask)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Adds
+this behavior was changed via <b>allowSleep()</b> method, <b>inti()
+</b>will <b>NOT</b> reset allow sleep particular parameter.
+</p>
+<p class="western" style="margin-bottom: 0in"><br><b>void
+addTask(Task&amp; aTask)</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Adds
task aTask to the execution queue (or chain) of tasks by appending it
to the end of the chain. If two tasks are scheduled for execution,
the sequence will match the order in which tasks were appended to the
chain. However, in reality, due to different timing of task
execution, the actual order may be different.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note:
-</B>Currently, changing the execution sequence in a chain dynamically
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note:
+</b>Currently, changing the execution sequence in a chain dynamically
is not supported.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
you need to reorder the chain sequence – initialize the scheduler
and re-add the tasks in a different order.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR><B>void
-deleteTask(Task&amp; aTask)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Deletes
+</p>
+<p class="western" style="margin-bottom: 0in"><br><b>void
+deleteTask(Task&amp; aTask)</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Deletes
task aTask from the execution chain. The chain of remaining tasks is
-linked together (i.e</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">if
+linked together (i.e</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">if
original task chain is 1 → 2 → 3 → 4, deleting 3 will result in
-1 → 2 → 4).</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Note:
-</B>it is not required to delete a task from the chain. A disabled
+1 → 2 → 4).</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Note:
+</b>it is not required to delete a task from the chain. A disabled
task will not be executed anyway, but you save a few microseconds per
scheduling pass by deleting it, since it is not even considered for
execution.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">An
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">An
example of proper use of this method would be running some sort of
-<B>initialize</B> task in the chain, and then deleting it from the
+<b>initialize</b> task in the chain, and then deleting it from the
chain since it only needs to run once.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void allowSleep(bool
-aState) </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Available
-in API only if compiled with <FONT FACE="Courier New, monospace">_TASK_TIMECRITICAL</FONT>
-enabled. Controls whether scheduler is allowed (<B>aState =true</B>),
-or not (<B>aState =false</B>) to put processor into IDLE sleep mode
-in case not tasks are scheduled to run.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">The
-<B>default</B> behavior of scheduler upon creation is to allow sleep
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void allowSleep(bool
+aState) </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Available
+in API only if compiled with <font face="Courier New, monospace">_TASK_TIMECRITICAL</font>
+enabled. Controls whether scheduler is allowed (<b>aState =true</b>),
+or not (<b>aState =false</b>) to put processor into IDLE sleep mode
+in case not tasks are scheduled to run.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">The
+<b>default</b> behavior of scheduler upon creation is to allow sleep
mode.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR><B>void
-enableAll(bool aRecursive= true)</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void disableAll(bool
-aRecursive= true)</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">enables
+</p>
+<p class="western" style="margin-bottom: 0in"><br><b>void
+enableAll(bool aRecursive= true)</b></p>
+<p class="western" style="margin-bottom: 0in"><b>void disableAll(bool
+aRecursive= true)</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">enables
and disables (respectively) all tasks in the chain. Convenient if
your need to enable/disable majority of the tasks (i.e. disable all
and then enable one).
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-support for layered task priority is enabled, supplying <B>aRecursive</B>
-parameter will enable/disable higher priority tasks as well (<B>true</B>,
-default), or tasks only on this priority layer (<B>false</B>).
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR><B>Task&amp; currentTask()<BR></B><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Returns
-reference to the task, currently executing via <B>execute()</B> loop
-<B>OR </B>for OnEnable and OnDisable methods, reference to the task
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+support for layered task priority is enabled, supplying <b>aRecursive</b>
+parameter will enable/disable higher priority tasks as well (<b>true</b>,
+default), or tasks only on this priority layer (<b>false</b>).
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br><b>Task&amp; currentTask()<br></b><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Returns
+reference to the task, currently executing via <b>execute()</b> loop
+<b>OR </b>for OnEnable and OnDisable methods, reference to the task
being enabled or disabled.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">This
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">This
distinction is important because one task can activate the other, and
OnEnable should be referring to the task being enabled, not being
executed.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Could
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Could
be used by callback methods to identify which Task actually invoked
-this callback method.</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>void* currentLts()<BR></B><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Returns
+this callback method.</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>void* currentLts()<br></b><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Returns
pointer to Local Task Storage of the task, currently executing via
-<B>execute()</B> loop <B>OR </B>for OnEnable and OnDisable methods,
+<b>execute()</b> loop <b>OR </b>for OnEnable and OnDisable methods,
task being enabled or disabled.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR><B>bool execute()</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Executes
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void startNow (bool
+aRecursive= true)</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Sets
+<b>ALL active tasks</b> in the execution chain to start execution
+immediately. Should be placed at the end of <b>setup()</b> method to
+prevent task execution race due to long running setup tasks (hardware
+initialization, etc.) following task activation.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+support for layered task priority is enabled, supplying <b>aRecursive</b>
+parameter will set immediate execution for higher priority tasks as
+well (<b>true</b>, default), or tasks only on this priority layer
+(<b>false</b>).
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
+</b>if <b>setup()</b> method does not contain long running tasks, use
+of <b>startNow()</b> method is not necessary. Alternatively, all
+tasks could be enabled <b>after </b>long-running <b>setup()</b>
+processes, thus eliminating the need to use <b>startNow()</b> method.
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
+</b>Any tasks which should execute after a <i><b>delay</b></i>,
+should be explicitly delayed after call to <b>startNow()</b> method.
+</p>
+<p class="western" style="margin-bottom: 0in"><br><b>bool execute()</b></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Executes
one scheduling pass, including (in case of the base priority
-scheduler) end-of-pass sleep. This method is typically placed inside
-the <B>loop()</B> method of the sketch. Since <B>execute</B> exits
-after every pass, you can put additional statements after <B>execute</B>
-inside the <B>loop().</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>If
+scheduler) end-of-pass sleep. This method should be placed inside the
+<b>loop()</b> method of the sketch. Since <b>execute</b> exits after
+every pass, you can put additional statements after <b>execute</b>
+inside the <b>loop().</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>If
layered task prioritization is enabled, all higher priority tasks
-will be evaluated and invoked by the base <FONT FACE="Courier New, monospace">execute()</FONT>
-method. There is no need to call <FONT FACE="Courier New, monospace">execute()</FONT>
-of the higher priority schedulers explicitly. </B>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">Generally,
-base priority execute will perform the following steps:</P>
-<OL>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Call higher
- priority scheduler’s execute method, if provided.</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Ignore task
- completely if it is disabled.</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Disable task if it
- ran out of iterations (calling OnDisable, if necessary).</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Check if task is
+will be evaluated and invoked by the base </b><font face="Courier New, monospace"><b>execute()</b></font><b>
+method. There is no need to call </b><font face="Courier New, monospace"><b>execute()</b></font><b>
+of the higher priority schedulers explicitly. </b>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">Generally,
+base priority execute will perform the following steps:</p>
+<ol>
+ <li><p class="western" style="margin-bottom: 0in">Call higher
+ priority scheduler’s execute method, if provided.</p>
+ <li><p class="western" style="margin-bottom: 0in">Ignore task
+ completely if it is disabled.</p>
+ <li><p class="western" style="margin-bottom: 0in">Disable task if it
+ ran out of iterations (calling OnDisable, if necessary).</p>
+ <li><p class="western" style="margin-bottom: 0in">Check if task is
waiting on a StatusRequest object, and make appropriate scheduling
- arrangements</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Perform necessary
- timing calculations</P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Invoke task's
+ arrangements</p>
+ <li><p class="western" style="margin-bottom: 0in">Perform necessary
+ timing calculations</p>
+ <li><p class="western" style="margin-bottom: 0in">Invoke task's
callback method, if it is time to do so, and one is provided.
- </P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in">Put
+ </p>
+ <li><p class="western" style="margin-bottom: 0in">Put
microcontroller to sleep (if requested and supported) if none of the
tasks were invoked.
- </P>
-</OL>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>Please
-NOTE:</B> schedule-related calculations are performed prior to task's
+ </p>
+</ol>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>Please
+NOTE:</b> schedule-related calculations are performed prior to task's
callback method invocation. This allows tasks to manipulate their
-runtime parameters (like execution interval) directly.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>bool isOverrun()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-library is compiled with <FONT FACE="Courier New, monospace">_TASK_TIMECRITICAL</FONT>
-enabled, this method returns <B>true</B> if currently invoked task
+runtime parameters (like execution interval) directly.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>bool isOverrun()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+library is compiled with <font face="Courier New, monospace">_TASK_TIMECRITICAL</font>
+enabled, this method returns <b>true</b> if currently invoked task
has overrun its scheduled start time when it was invoked. Returns
-<B>false</B> if task has been invoked according to schedule.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>TASK PRIORITY:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>void
-setHighPriorityScheduler(Scheduler* aScheduler);</B><BR><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-library is compiled with <FONT FACE="Courier New, monospace">_TASK_PRIORITY
-</FONT>enabled, this method associates current scheduler with a
+<b>false</b> if task has been invoked according to schedule.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>TASK PRIORITY:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>void
+setHighPriorityScheduler(Scheduler* aScheduler);</b><br><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+library is compiled with <font face="Courier New, monospace">_TASK_PRIORITY
+</font>enabled, this method associates current scheduler with a
higher priority scheduler.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>NOTE:
-</B>Only one <B>execute() </B>method needs to be explicitly called in
-the main <B>loop(). </B>That is the execute method of <B>base</B>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
+</b>Only one <b>execute() </b>method needs to be explicitly called in
+the main <b>loop(). </b>That is the execute method of <b>base</b>
priority scheduler. All higher priority schedulers are called by the
-base priority scheduler.</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><B>static Scheduler&amp;
-currentScheduler()</B></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">If
-library is compiled with <FONT FACE="Courier New, monospace">_TASK_PRIORITY
-</FONT>enabled, this method returns reference to a scheduler, which
+base priority scheduler.</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><b>static Scheduler&amp;
+currentScheduler()</b></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">If
+library is compiled with <font face="Courier New, monospace">_TASK_PRIORITY
+</font>enabled, this method returns reference to a scheduler, which
invoked current task.
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><B>NOTE:
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><b>NOTE:
Please refer to examples 11 and 12 for illustration of Task Priority
-functionality</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<B>CONSTANTS:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<B>TASK_SECOND (1000)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">Task
-interval of 1 second</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<B>TASK_MINUTE (60000)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">Task
-interval of 1 minute</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<B>TASK_HOUR (3600000)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">Task
-interval of 1 hour</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<B>TASK_FOREVER (-1)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">Task
-number of iterations for infinite number of iterations</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<B>TASK_ONCE (1)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">Task
-single iteration</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<B>TASK_IMMEDIATE (0)</B></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">Task
-interval for immediate execution</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-before: always; page-break-after: avoid">
-<B>IMPLEMENTATION SCENARIOS AND IDEAS:</B></P>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<OL>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
- <B>EVENT DRIVEN PROGRAMMING</B></P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Each of the processes
+functionality</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<b>CONSTANTS:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<b>TASK_SECOND (1000 millis or 1000000 micros)</b></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">Task
+interval of 1 second</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<b>TASK_MINUTE (60000 millis or 60000000 micros)</b></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">Task
+interval of 1 minute</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<b>TASK_HOUR (3600000 millis or 3600000000 micros)</b></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">Task
+interval of 1 hour</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<b>TASK_FOREVER (-1)</b></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">Task
+number of iterations for infinite number of iterations</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<b>TASK_ONCE (1)</b></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">Task
+single iteration</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<b>TASK_IMMEDIATE (0)</b></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">Task
+interval for immediate execution</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in; page-break-before: always; page-break-after: avoid">
+<b>IMPLEMENTATION SCENARIOS AND IDEAS:</b></p>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<ol>
+ <li><p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+ <b>EVENT DRIVEN PROGRAMMING</b></p>
+</ol>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in">Each of the processes
of your application becomes a separate and distinct programming area,
which may or may not interact and control each other.
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Example:
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">In a plant watering
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Example:
+</p>
+<p class="western" style="margin-bottom: 0in">In a plant watering
system you need to measure soil humidity, control pump and display
-the results</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Each of the areas
-becomes a task:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-<B>tMeasure</B> (TMEASURE_INTERVAL*SECOND, TASK_FOREVER,
-&amp;measureCallback);<BR>Task <B>tWater</B>
-(TWATER_INTERVAL*SECOND, RETRIES, &amp;waterCallback);<BR>Task
-<B>tDisplay</B> (TDISPLAY_INTERVAL*SECOND, TASK_FOREVER,
-&amp;displayCallback); <BR></FONT></FONT><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Scheduler
-</FONT></FONT><FONT FACE="Courier New, monospace"><FONT SIZE=2><B>taskManager</B></FONT></FONT><FONT FACE="Courier New, monospace"><FONT SIZE=2>;</FONT></FONT><BR><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Further, once you turn
+the results</p>
+<p class="western" style="margin-bottom: 0in">Each of the areas
+becomes a task:</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><b>tMeasure</b></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">
+(TMEASURE_INTERVAL*SECOND, TASK_FOREVER, &amp;measureCallback);<br>Task
+</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><b>tWater</b></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">
+ (TWATER_INTERVAL*SECOND, RETRIES, &amp;waterCallback);<br>Task
+</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><b>tDisplay</b></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">
+(TDISPLAY_INTERVAL*SECOND, TASK_FOREVER, &amp;displayCallback); <br></font></font><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Scheduler
+</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><b>taskManager</b></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">;</font></font><br><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Further, once you turn
on the pump, you keep it running for TWATER_INTERVAL interval and
then turn it off. Turning off a pump is also a task which only needs
-to run once for every time the pump is turned on:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-</FONT></FONT><FONT FACE="Courier New, monospace"><FONT SIZE=2><B>tWaterOff</B></FONT></FONT><FONT FACE="Courier New, monospace"><FONT SIZE=2>
-(WATERTIME*SECOND, TASK_ONCE,</FONT></FONT><FONT FACE="Courier New, monospace">
-&amp;waterOffCallback);</FONT><BR><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in">Example of the callback
-method:</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-waterOffCallback() {<BR> motorOff();<BR>
-tWater.enableDelayed();<BR>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>or</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-waterCallback() {<BR> if (tWater.getIterations()) {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-If this is not the last iteration = turn the pump on<BR>
-motorOn();<BR> tWaterOff.set(parameters.watertime * TASK_SECOND,
-TASK_ONCE, &amp;waterOffCallback);<BR>
-tWaterOff.enableDelayed();<BR> return;<BR> }</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-We could not reach target humidity – something is wrong<BR>
-motorOff;<BR> taskManager.disableAll();<BR> tError.enable();<BR>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Your
-sample <B>setup</B>() and <B>loop</B>() (partially) are as follows. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><B>Note:
-</B>please note that tWater is <B>not</B> activated during setup().
-It is activated by tMeasure callback once the watering conditions are
-met. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT SIZE=2><FONT FACE="Times New Roman, serif"> void
-</FONT><FONT FACE="Courier New, monospace">setup()</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>
- ...</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT SIZE=2><FONT FACE="Courier New, monospace">tWater.setIterations(parameters.retries);<BR>
- tWaterOff.setInterval(parameters.watertime * SECOND);<BR><BR><BR>
-taskManager.init();<BR> taskManager.addTask(tMeasure);<BR>
-taskManager.addTask(tDisplay);<BR> taskManager.addTask(tWater);<BR>
-taskManager.addTask(tWaterOff);<BR> <BR> tMeasure.enable();<BR>
-tDisplay.enable();<BR><BR> currentHumidity =
-measureHumidity();<BR>}<BR><BR><BR>void loop ()<BR>{<BR>
-taskManager.execute();<BR>}</FONT><FONT FACE="Times New Roman, serif"><BR></FONT></FONT><BR>
-</P>
-<OL START=2>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
- “<FONT FACE="Times New Roman, serif"><B>NATIVE” SUPPORT FOR
- FINITE STATE MACHINE</B></FONT></P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Define
+to run once for every time the pump is turned on:</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><b>tWaterOff</b></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">
+(WATERTIME*SECOND, TASK_ONCE,</font></font><font face="Courier New, monospace">
+&amp;waterOffCallback);</font><br><br>
+</p>
+<p class="western" style="margin-bottom: 0in">Example of the callback
+method:</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+waterOffCallback() {<br> motorOff();<br>
+tWater.enableDelayed();<br>}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">or</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+waterCallback() {<br> if (tWater.getIterations()) {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+If this is not the last iteration = turn the pump on<br>
+motorOn();<br> tWaterOff.set(parameters.watertime * TASK_SECOND,
+TASK_ONCE, &amp;waterOffCallback);<br>
+tWaterOff.enableDelayed();<br> return;<br> }</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+We could not reach target humidity – something is wrong<br>
+motorOff;<br> taskManager.disableAll();<br> tError.enable();<br>}</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">Your
+sample </font><font face="Times New Roman, serif"><b>setup</b></font><font face="Times New Roman, serif">()
+and </font><font face="Times New Roman, serif"><b>loop</b></font><font face="Times New Roman, serif">()
+(partially) are as follows. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif"><b>Note:
+</b></font><font face="Times New Roman, serif">please note that
+tWater is </font><font face="Times New Roman, serif"><b>not</b></font><font face="Times New Roman, serif">
+activated during setup(). It is activated by tMeasure callback once
+the watering conditions are met. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 10pt"> void
+</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">setup()</font></font></p>
+<p class="western" style="margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">
+ ...</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tWater.setIterations(parameters.retries);<br>
+ tWaterOff.setInterval(parameters.watertime * SECOND);<br><br><br>
+taskManager.init();<br> taskManager.addTask(tMeasure);<br>
+taskManager.addTask(tDisplay);<br> taskManager.addTask(tWater);<br>
+taskManager.addTask(tWaterOff);<br> <br> tMeasure.enable();<br>
+tDisplay.enable();<br><br> currentHumidity =
+measureHumidity();<br>}<br><br><br>void loop ()<br>{<br>
+taskManager.execute();<br>}</font></font><font face="Times New Roman, serif"><font size="2" style="font-size: 10pt"><br></font></font><br>
+</p>
+<ol start="2">
+ <li><p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+ “<font face="Times New Roman, serif"><b>NATIVE” SUPPORT FOR
+ FINITE STATE MACHINE</b></font></p>
+</ol>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">Define
“states” as callback method or methods. Each callback method
executes activities specific to a “state” and then “transitions”
-to the next state by assigning next callback method to the task. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Transition
+to the next state by assigning next callback method to the task. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">Transition
from one state to the next is achieved by setting next callback
-method at the end of preceding one. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><B>Note:
-</B>do not call the next callback method explicitly. Yield to the
-scheduler, and let the scheduler take care of next iteration during
-the next pass. (Thus giving other tasks change to run their callback
-methods). </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Example:
-Blinking LED 2 times a second could be achieved this way</FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Scheduler
-ts;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-tLedBlinker (500, TASK_FOREVER, &amp;ledOnCallback, &amp;ts, true);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
- ledOnCallback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> turnLedOn();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> tLedBlinker.setCallback(&amp;ledOffCallback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
- ledOffCallback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> turnLedOff();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> tLedBlinker.setCallback(&amp;ledOnCallback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>setup()
-{</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>loop
-() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> ts.execute();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT><FONT FACE="Times New Roman, serif"><BR></FONT><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Obviously
+method at the end of preceding one. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif"><b>Note:
+</b></font><font face="Times New Roman, serif">do not call the next
+callback method explicitly. Yield to the scheduler, and let the
+scheduler take care of next iteration during the next pass. (Thus
+giving other tasks change to run their callback methods). </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">Example:
+Blinking LED 2 times a second could be achieved this way</font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Scheduler
+ts;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+tLedBlinker (500, TASK_FOREVER, &amp;ledOnCallback, &amp;ts, true);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+ ledOnCallback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> turnLedOn();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> tLedBlinker.setCallback(&amp;ledOffCallback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+ ledOffCallback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> turnLedOff();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> tLedBlinker.setCallback(&amp;ledOnCallback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">setup()
+{</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">loop
+() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> ts.execute();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font><font face="Times New Roman, serif"><br></font><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">Obviously
the example is simple, but gives the idea of how the tasks could be
-used to go through states.</FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<OL START=3>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
- <FONT FACE="Times New Roman, serif"><B>MULTIPLE POSSIBLE CALLBACKS
- FOR TASK</B></FONT></P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">There
+used to go through states.</font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<ol start="3">
+ <li><p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+ <font face="Times New Roman, serif"><b>MULTIPLE POSSIBLE CALLBACKS
+ FOR TASK</b></font></p>
+</ol>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">There
may be a need to select an option for callback method based on
-certain criteria, or randomly. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">You
+certain criteria, or randomly. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">You
can achieve that by defining an array of callback method pointers and
-selecting one based on the criteria you need. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Example:
+selecting one based on the criteria you need. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">Example:
when a robot detects an obstacle, it may go left, right backwards,
etc. Each of the “directions” or “behaviors” are represented
-by a different callback methods. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Another
-example of using multiple callbacks:</FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">You
-may need to “initialize” variables for a particular task.</FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">In
-this case, define a tasks with two callbacks:</FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-<B>tWork</B> (T_INTERVAL, TASK_FOREVER, &amp;workCallbackInit);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">…</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
- workCallbackInit() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> //
-do your initializationstuff here</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> </FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> //
-finally assigne the main callback method </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> tWork.setCallback(&amp;workCallback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-workCallback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> //
-main callback method</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> …</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">The
+by a different callback methods. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">Another
+example of using multiple callbacks:</font></p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">You
+may need to “initialize” variables for a particular task.</font></p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">In
+this case, define a tasks with two callbacks:</font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><b>tWork</b></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">
+(T_INTERVAL, TASK_FOREVER, &amp;workCallbackInit);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">…</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+ workCallbackInit() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> //
+do your initializationstuff here</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> </font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> //
+finally assigne the main callback method </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> tWork.setCallback(&amp;workCallback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+workCallback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> //
+main callback method</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> …</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">The
task will initialize during first execution pass and switch to
“regular” callback execution starting with second pass. There is
a delay between first and second passes of the task (scheduling
period, if defined). In order to execute the second pass immediately
-after initialization first pass, change the above code like this:</FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
- workCallbackInit() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> //
-do your initializationstuff here</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> </FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> //
-finally assigne the main callback method </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> tWork.setCallback(&amp;workCallback);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> tWork.enable();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">The
+after initialization first pass, change the above code like this:</font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+ workCallbackInit() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> //
+do your initializationstuff here</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> </font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> //
+finally assigne the main callback method </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> tWork.setCallback(&amp;workCallback);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> tWork.enable();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">The
task will run initialization first, then immediately second pass, and
then switch to processing at regular intervals starting with a third
-pass. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<OL START=3>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
- <FONT FACE="Times New Roman, serif"><B>INTERRUP-DRIVEN EXECUTION
- SUPPORT </B></FONT>
- </P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">In
+pass. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<ol start="3">
+ <li><p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+ <font face="Times New Roman, serif"><b>INTERRUP-DRIVEN EXECUTION
+ SUPPORT </b></font>
+ </p>
+</ol>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">In
case of interrupt-driven program flow, tasks could be scheduled to
run once to request asynchronous execution (request), and then
re-enabled (restarted) again with a different callback method to
-process the results. </FONT>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><B>Example</B>:
+process the results. </font>
+</p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif"><b>Example</b></font><font face="Times New Roman, serif">:
event driven distance calculation for ultrasonic pulses. EchoPin #6
triggers pin change interrupts on rising and falling edges to
-determine the length of ultrasonic pulse.</FONT></P>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#include
-&lt;DirectIO.h&gt;<BR>#include &lt;TaskScheduler.h&gt;<BR>#include
-&lt;PinChangeInt.h&gt;<BR><BR><BR>#define TRIGGERPIN 5<BR>#define
-ECHOPIN 6<BR><BR>Output&lt;TRIGGERPIN&gt;
-pTrigger;<BR>Input&lt;ECHOPIN&gt; pEcho;<BR><BR>Scheduler
-r;<BR><BR>Task tMeasure(TASK_SECOND, TASK_FOREVER, &amp;measureCallback,
-&amp;r, true);<BR>Task tDisplay(TASK_SECOND, TASK_FOREVER,
-&amp;displayCallback, &amp;r, true);<BR>Task tPing(TASK_IMMEDIATE,
-TASK_ONCE, &amp;pingCalcCallback, &amp;r, false);<BR><BR><BR>volatile
-bool pulseBusy = false;<BR>volatile bool pulseTimeout =
-false;<BR>volatile unsigned long pulseStart = 0;<BR>volatile unsigned
-long pulseStop = 0;<BR>volatile unsigned long pingDistance =
-0;<BR><BR><BR>void pingTrigger(unsigned long aTimeout) {<BR> if
-(pulseBusy) return; // do not trigger if in the middle of a pulse<BR>
- if (pEcho == HIGH) return; // do not trigger if ECHO pin is high<BR>
- <BR> pulseBusy = true;<BR> pulseTimeout = false;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2><BR>
- pTrigger = LOW;<BR> delayMicroseconds(4);<BR> pTrigger = HIGH;<BR><BR>
- tPing.setInterval (aTimeout);<BR><BR> delayMicroseconds(10);<BR>
-pTrigger = LOW; <BR></FONT></FONT><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tPing.restartDelayed();
-// timeout countdown starts now<BR></FONT></FONT><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-will start the pulse clock on the rising edge of ECHO pin</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>PCintPort::attachInterrupt(ECHOPIN,
-&amp;pingStartClock, RISING); <BR>}<BR><BR></FONT></FONT><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-Start clock on the <B>rising</B> edge of the ultrasonic pulse<BR>void
-pingStartClock() {<BR> pulseStart = micros();<BR>
-PCintPort::detachInterrupt(ECHOPIN); // not sure this is necessary<BR>
- PCintPort::attachInterrupt(ECHOPIN, &amp;pingStopClock, FALLING); <BR>
- tPing.restartDelayed();<BR>}<BR><BR>// Stop clock on the <B>falling</B>
-edge of the ultrasonic pulse<BR>void pingStopClock() {<BR> pulseStop
-= micros();<BR> PcintPort::detachInterrupt(ECHOPIN);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>pingDistance =
-pulseStop - pulseStart;<BR> pulseBusy = false;<BR> tPing.disable();
-// disable timeout<BR>}<BR></FONT></FONT><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-Stop clock because of the timeout – the wave did not return<BR>void
-pingCalcCallback() {<BR> if (pulseBusy) {<BR> pingStopClock();<BR>
- }<BR> pulseTimeout = true;<BR>}<BR><BR><BR><BR>// Initial measure
-callback sets the trigger<BR>void measureCallback() {<BR> if
-(pulseBusy) { // already measuring, try again<BR>
-tMeasure.enable();<BR> return;<BR> }<BR> pingTrigger(30); // 30
-milliseconds or max range of ~5.1 meters<BR>
-tMeasure.setCallback(&amp;measureCallbackWait);<BR>}<BR></FONT></FONT><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-Wait for the measurement to <BR>void measureCallbackWait() {<BR> if
-(pulseBusy) return;<BR> tMeasure.setCallback(&amp;measureCallback);
-<BR>}<BR><BR><BR>bool state = true;<BR><BR>void displayCallback() {<BR>
- char d[256];<BR> <BR> unsigned long cm = pingDistance * 17 / 100;
-// cm<BR> <BR> snprintf(d, 256, &quot;pulseStart =
+determine the length of ultrasonic pulse.</font></p>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#include
+&lt;DirectIO.h&gt;<br>#include &lt;TaskScheduler.h&gt;<br>#include
+&lt;PinChangeInt.h&gt;<br><br><br>#define TRIGGERPIN 5<br>#define
+ECHOPIN 6<br><br>Output&lt;TRIGGERPIN&gt;
+pTrigger;<br>Input&lt;ECHOPIN&gt; pEcho;<br><br>Scheduler
+r;<br><br>Task tMeasure(TASK_SECOND, TASK_FOREVER, &amp;measureCallback,
+&amp;r, true);<br>Task tDisplay(TASK_SECOND, TASK_FOREVER,
+&amp;displayCallback, &amp;r, true);<br>Task tPing(TASK_IMMEDIATE,
+TASK_ONCE, &amp;pingCalcCallback, &amp;r, false);<br><br><br>volatile
+bool pulseBusy = false;<br>volatile bool pulseTimeout =
+false;<br>volatile unsigned long pulseStart = 0;<br>volatile unsigned
+long pulseStop = 0;<br>volatile unsigned long pingDistance =
+0;<br><br><br>void pingTrigger(unsigned long aTimeout) {<br> if
+(pulseBusy) return; // do not trigger if in the middle of a pulse<br>
+ if (pEcho == HIGH) return; // do not trigger if ECHO pin is high<br>
+ <br> pulseBusy = true;<br> pulseTimeout = false;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><br>
+ pTrigger = LOW;<br> delayMicroseconds(4);<br> pTrigger = HIGH;<br><br>
+ tPing.setInterval (aTimeout);<br><br> delayMicroseconds(10);<br>
+pTrigger = LOW; <br></font></font><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tPing.restartDelayed();
+// timeout countdown starts now<br></font></font><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+will start the pulse clock on the rising edge of ECHO pin</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">PCintPort::attachInterrupt(ECHOPIN,
+&amp;pingStartClock, RISING); <br>}<br><br></font></font><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+Start clock on the </font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><b>rising</b></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">
+edge of the ultrasonic pulse<br>void pingStartClock() {<br>
+pulseStart = micros();<br> PCintPort::detachInterrupt(ECHOPIN); //
+not sure this is necessary<br> PCintPort::attachInterrupt(ECHOPIN,
+&amp;pingStopClock, FALLING); <br> tPing.restartDelayed();<br>}<br><br>//
+Stop clock on the </font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><b>falling</b></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">
+edge of the ultrasonic pulse<br>void pingStopClock() {<br> pulseStop
+= micros();<br> PcintPort::detachInterrupt(ECHOPIN);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">pingDistance
+= pulseStop - pulseStart;<br> pulseBusy = false;<br>
+tPing.disable(); // disable timeout<br>}<br></font></font><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+Stop clock because of the timeout – the wave did not return<br>void
+pingCalcCallback() {<br> if (pulseBusy) {<br> pingStopClock();<br>
+ }<br> pulseTimeout = true;<br>}<br><br><br><br>// Initial measure
+callback sets the trigger<br>void measureCallback() {<br> if
+(pulseBusy) { // already measuring, try again<br>
+tMeasure.enable();<br> return;<br> }<br> pingTrigger(30); // 30
+milliseconds or max range of ~5.1 meters<br>
+tMeasure.setCallback(&amp;measureCallbackWait);<br>}<br></font></font><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+Wait for the measurement to <br>void measureCallbackWait() {<br> if
+(pulseBusy) return;<br> tMeasure.setCallback(&amp;measureCallback);
+<br>}<br><br><br>bool state = true;<br><br>void displayCallback() {<br>
+ char d[256];<br> <br> unsigned long cm = pingDistance * 17 / 100;
+// cm<br> <br> snprintf(d, 256, &quot;pulseStart =
%8lu\tpulseStop=%8lu\tdistance, cm=%8lu&quot;, pulseStart, pulseStop,
-cm);<BR> Serial.println(d);<BR> <BR>}<BR><BR>void setup() {<BR> //
-put your setup code here, to run once:<BR> <BR>
-Serial.begin(115200);<BR> <BR><BR> pTrigger = LOW;<BR> pEcho =
-LOW;<BR> <BR>}<BR><BR>void loop() {<BR> // put your main code here,
-to run repeatedly:<BR> r.execute();<BR>}<BR></FONT></FONT><BR>
-</P>
-<OL START=3>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
- <FONT FACE="Times New Roman, serif"><B>USING ONENABLE AND ONDISBALE
- METHODS </B></FONT>
- </P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Consider
+cm);<br> Serial.println(d);<br> <br>}<br><br>void setup() {<br> //
+put your setup code here, to run once:<br> <br>
+Serial.begin(115200);<br> <br><br> pTrigger = LOW;<br> pEcho =
+LOW;<br> <br>}<br><br>void loop() {<br> // put your main code here,
+to run repeatedly:<br> r.execute();<br>}<br></font></font><br>
+</p>
+<ol start="3">
+ <li><p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+ <font face="Times New Roman, serif"><b>USING ONENABLE AND ONDISBALE
+ METHODS </b></font>
+ </p>
+</ol>
+<p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif">Consider
a task to flash onboard LED for 5 seconds with random frequency. Task
should be repeated every 30 seconds indefinitely. Since frequency is
-random, there are two challenges:</FONT></P>
-<OL START=3>
- <OL>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">We
- need to make sure LED is turned OFF at the last iteration</FONT></P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif">We
- need to calculate random frequency every time</FONT></P>
- </OL>
-</OL>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif">Below
-is the implementation using TaskScheduler </FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2><BR></FONT></FONT><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#define
-_TASK_SLEEP_ON_IDLE_RUN</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#include
-&lt;TaskScheduler.h&gt;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#define
- LEDPIN 13</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Scheduler
-ts;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-tWrapper(30000, TASK_FOREVER, &amp;WrapperCallback, &amp;ts, true);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
+random, there are two challenges:</font></p>
+<ol start="3">
+ <ol>
+ <li><p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">We
+ need to make sure LED is turned OFF at the last iteration</font></p>
+ <li><p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif">We
+ need to calculate random frequency every time</font></p>
+ </ol>
+</ol>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif">Below
+is the implementation using TaskScheduler </font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><br></font></font><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#define
+_TASK_SLEEP_ON_IDLE_RUN</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#include
+&lt;TaskScheduler.h&gt;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#define
+ LEDPIN 13</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Scheduler
+ts;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+tWrapper(30000, TASK_FOREVER, &amp;WrapperCallback, &amp;ts, true);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
tBlink(5000, TASK_ONCE, NULL, &amp;ts, false, &amp;BlinkOnEnable,
-&amp;BlinkOnDisable);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
+&amp;BlinkOnDisable);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
tLED(TASK_IMMEDIATE, TASK_FOREVER, NULL, &amp;ts, false, NULL,
-&amp;LEDOff);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-WrapperCallback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;In
-WrapperCallback&quot;);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tBlink.restartDelayed();
- // LED blinking is initiated </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="Courier New, monospace"><FONT SIZE=2>//every
-30 seconds for 5 seconds</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-Upon being enabled, tBlink will define the parameters</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-and enable LED blinking task, which actually controls</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-the hardware (LED in this example)</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>bool
-BlinkOnEnable() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;In
-BlinkOnEnable&quot;);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tLED.setInterval(
-500 + random(501) );</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tLED.setCallback(
-&amp;LEDOn);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tLED.enable();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>return true; //
-Task should be enabled</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-tBlink does not really need a callback method</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-since it just waits for 5 seconds for the first </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-and only iteration to occur. Once the iteration</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-takes place, tBlink is disabled by the Scheduler, </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-thus executing its OnDisable method below.</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-BlinkOnDisable() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;In
-BlinkOnDisable&quot;);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tLED.disable();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-LEDOn () {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;In
-LEDOn&quot;);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>digitalWrite(LEDPIN,
-HIGH);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tLED.setCallback(
-&amp;LEDOff);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-LEDOff () {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;In
-LEDOff&quot;);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>digitalWrite(LEDPIN,
-LOW);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tLED.setCallback(
-&amp;LEDOn);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-Note that LEDOff method serves as OnDisable method</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-to make sure the LED is turned off when the tBlink</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-task finishes (or disabled ahead of time)</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-setup() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.begin(115200);
-</FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>pinMode(LEDPIN,
-OUTPUT); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-loop() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>// put your main
-code here, to run repeatedly:</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>ts.execute();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<OL START=3>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
- <FONT FACE="Times New Roman, serif"><B>USING STATUS REQUEST OBJECTS
- </B></FONT>
- </P>
-</OL>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">This
+&amp;LEDOff);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+WrapperCallback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;In
+WrapperCallback&quot;);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tBlink.restartDelayed();
+ // LED blinking is initiated </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//every
+30 seconds for 5 seconds</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+Upon being enabled, tBlink will define the parameters</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+and enable LED blinking task, which actually controls</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+the hardware (LED in this example)</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">bool
+BlinkOnEnable() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;In
+BlinkOnEnable&quot;);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tLED.setInterval(
+500 + random(501) );</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tLED.setCallback(
+&amp;LEDOn);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tLED.enable();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">return
+true; // Task should be enabled</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+tBlink does not really need a callback method</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+since it just waits for 5 seconds for the first </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+and only iteration to occur. Once the iteration</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+takes place, tBlink is disabled by the Scheduler, </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+thus executing its OnDisable method below.</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+BlinkOnDisable() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;In
+BlinkOnDisable&quot;);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tLED.disable();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+LEDOn () {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;In
+LEDOn&quot;);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">digitalWrite(LEDPIN,
+HIGH);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tLED.setCallback(
+&amp;LEDOff);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+LEDOff () {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;In
+LEDOff&quot;);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">digitalWrite(LEDPIN,
+LOW);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tLED.setCallback(
+&amp;LEDOn);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+Note that LEDOff method serves as OnDisable method</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+to make sure the LED is turned off when the tBlink</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+task finishes (or disabled ahead of time)</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+setup() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.begin(115200);
+</font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">pinMode(LEDPIN,
+OUTPUT); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+loop() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+put your main code here, to run repeatedly:</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">ts.execute();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<ol start="3">
+ <li><p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+ <font face="Times New Roman, serif"><b>USING STATUS REQUEST OBJECTS
+ </b></font>
+ </p>
+</ol>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">This
test emulates querying 3 sensors once every 10 seconds, each could
respond with a different delay (ultrasonic sensors for instance) and
printing a min value of the three when all three have reported their
-values.</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">The
-overall timeout of 1 second is setup as well.</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">An
+values.</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">The
+overall timeout of 1 second is setup as well.</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">An
error message needs to be printed if a timeout occurred instead of a
-value.</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#define
-_TASK_SLEEP_ON_IDLE_RUN</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#define
-_TASK_STATUS_REQUEST</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#include
-&lt;TaskScheduler.h&gt;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>StatusRequest
-measure;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Scheduler
-ts; </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-tCycle(10000, TASK_FOREVER, &amp;CycleCallback, &amp;ts, true);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
+value.</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#define
+_TASK_SLEEP_ON_IDLE_RUN</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#define
+_TASK_STATUS_REQUEST</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#include
+&lt;TaskScheduler.h&gt;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">StatusRequest
+measure;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Scheduler
+ts; </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+tCycle(10000, TASK_FOREVER, &amp;CycleCallback, &amp;ts, true);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
tMeasure(TASK_SECOND, TASK_ONCE, &amp;MeasureCallback, &amp;ts,
-false, &amp;MeasureEnable, &amp;MeasureDisable);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-tCalculate(&amp;CalcCallback, &amp;ts);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
+false, &amp;MeasureEnable, &amp;MeasureDisable);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+tCalculate(&amp;CalcCallback, &amp;ts);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
tSensor1(TASK_IMMEDIATE, TASK_ONCE, &amp;S1Callback, &amp;ts, false,
-&amp;S1Enable);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
+&amp;S1Enable);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
tSensor2(TASK_IMMEDIATE, TASK_ONCE, &amp;S2Callback, &amp;ts, false,
-&amp;S2Enable);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
+&amp;S2Enable);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
tSensor3(TASK_IMMEDIATE, TASK_ONCE, &amp;S3Callback, &amp;ts, false,
-&amp;S3Enable);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>long
-distance, d1, d2, d3;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-CycleCallback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;CycleCallback:
-Initiating measurement cycle every 10 seconds&quot;);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tMeasure.restartDelayed();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>bool
-MeasureEnable() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;MeasureEnable:
-Activating sensors&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>distance = 0;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>measure.setWaiting(3);
-// Set the StatusRequest to wait for 3 signals. </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tCalculate.waitFor(&amp;measure);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor1.restart();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor2.restart();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor3.restart();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>return true;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-MeasureCallback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;MeasureCallback:
-Invoked by calculate task or one second later&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>if
-(measure.pending()) {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="Courier New, monospace"><FONT SIZE=2>tCalculate.disable();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="Courier New, monospace"><FONT SIZE=2>measure.signalComplete(-1);
- // signal error</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;MeasureCallback:
-Timeout!&quot;);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>else {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.print(&quot;MeasureCallback:
-Min distance=&quot;);Serial.println(distance);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-MeasureDisable() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;MeasureDisable:
-Cleaning up&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor1.disable();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor2.disable();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor3.disable();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-CalcCallback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;CalcCallback:
-calculating&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>distance = -1;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>if (
-measure.getStatus() &gt;= 0) { // only calculate if statusrequest
-ended successfully</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="Courier New, monospace"><FONT SIZE=2>distance = d1 &lt;
-d2 ? d1 : d2;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="Courier New, monospace"><FONT SIZE=2>distance = d3 &lt;
-distance ? d3 : distance;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
- <FONT FACE="Courier New, monospace"><FONT SIZE=2>tMeasure.forceNextIteration();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>/**
-Simulation code for sensor 1</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"> <FONT FACE="Courier New, monospace"><FONT SIZE=2>*
- ----------------------------</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>*/</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>bool
-S1Enable() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.print(&quot;S1Enable:
-Triggering sensor1. Delay=&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor1.setInterval(
+&amp;S3Enable);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">long
+distance, d1, d2, d3;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+CycleCallback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;CycleCallback:
+Initiating measurement cycle every 10 seconds&quot;);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tMeasure.restartDelayed();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">bool
+MeasureEnable() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;MeasureEnable:
+Activating sensors&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">distance
+= 0;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">measure.setWaiting(3);
+// Set the StatusRequest to wait for 3 signals. </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tCalculate.waitFor(&amp;measure);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor1.restart();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor2.restart();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor3.restart();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">return
+true;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+MeasureCallback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;MeasureCallback:
+Invoked by calculate task or one second later&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">if
+(measure.pending()) {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tCalculate.disable();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">measure.signalComplete(-1);
+ // signal error</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;MeasureCallback:
+Timeout!&quot;);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">else
+{</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.print(&quot;MeasureCallback:
+Min distance=&quot;);Serial.println(distance);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+MeasureDisable() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;MeasureDisable:
+Cleaning up&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor1.disable();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor2.disable();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor3.disable();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+CalcCallback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;CalcCallback:
+calculating&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">distance
+= -1;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">if
+( measure.getStatus() &gt;= 0) { // only calculate if statusrequest
+ended successfully</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">distance
+= d1 &lt; d2 ? d1 : d2;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">distance
+= d3 &lt; distance ? d3 : distance;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+ <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tMeasure.forceNextIteration();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">/**
+Simulation code for sensor 1</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"> <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">*
+ ----------------------------</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">*/</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">bool
+S1Enable() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.print(&quot;S1Enable:
+Triggering sensor1. Delay=&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor1.setInterval(
random(1200) ); // Simulating sensor delay, which could go over 1
-second and cause timeout</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>d1 = 0;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(
-tSensor1.getInterval() );</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>return true;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-S1Callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.print(&quot;S1Callback:
-Emulating measurement. d1=&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>d1 = random(501); //
-pick a value from 0 to 500 &quot;centimeters&quot; simulating a
-measurement </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>measure.signal();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(d1); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>/**
-Simulation code for sensor 2</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"> <FONT FACE="Courier New, monospace"><FONT SIZE=2>*
- ----------------------------</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>*/</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>bool
-S2Enable() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.print(&quot;S2Enable:
-Triggering sensor2. Delay=&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor2.setInterval(
+second and cause timeout</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">d1
+= 0;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(
+tSensor1.getInterval() );</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">return
+true;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+S1Callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.print(&quot;S1Callback:
+Emulating measurement. d1=&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">d1
+= random(501); // pick a value from 0 to 500 &quot;centimeters&quot;
+simulating a measurement </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">measure.signal();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(d1);
+</font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">/**
+Simulation code for sensor 2</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"> <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">*
+ ----------------------------</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">*/</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">bool
+S2Enable() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.print(&quot;S2Enable:
+Triggering sensor2. Delay=&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor2.setInterval(
random(1200) ); // Simulating sensor delay, which could go over 1
-second and cause timeout</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>d2 = 0;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(
-tSensor2.getInterval() );</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>return true;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-S2Callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.print(&quot;S2Callback:
-Emulating measurement. d2=&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>d2 = random(501); //
-pick a value from 0 to 500 &quot;centimeters&quot; simulating a
-measurement</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>measure.signal();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(d2);
-</FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>/**
-Simulation code for sensor 3</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"> <FONT FACE="Courier New, monospace"><FONT SIZE=2>*
- ----------------------------</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>*/</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>bool
-S3Enable() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.print(&quot;S3Enable:
-Triggering sensor3. Delay=&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>tSensor3.setInterval(
+second and cause timeout</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">d2
+= 0;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(
+tSensor2.getInterval() );</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">return
+true;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+S2Callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.print(&quot;S2Callback:
+Emulating measurement. d2=&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">d2
+= random(501); // pick a value from 0 to 500 &quot;centimeters&quot;
+simulating a measurement</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">measure.signal();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(d2);
+ </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">/**
+Simulation code for sensor 3</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"> <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">*
+ ----------------------------</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">*/</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">bool
+S3Enable() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.print(&quot;S3Enable:
+Triggering sensor3. Delay=&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">tSensor3.setInterval(
random(1200) ); // Simulating sensor delay, which could go over 1
-second and cause timeout</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>d3 = 0;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(
-tSensor3.getInterval() );</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>return true;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-S3Callback() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.print(&quot;S3Callback:
-Emulating measurement. d3=&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>d3 = random(501); //
-pick a value from 0 to 500 &quot;centimeters&quot; simulating a
-measurement</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>measure.signal();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(d3); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>/**
-Main Arduino code</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"> <FONT FACE="Courier New, monospace"><FONT SIZE=2>*
- Not much is left here - everything is taken care of by the framework</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>*/</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-setup() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.begin(115200);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Serial.println(&quot;TaskScheduler
-StatusRequest Sensor Emulation Test. Complex Test.&quot;); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>randomSeed(analogRead(A1)+millis());</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-loop() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>ts.execute();</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<OL START=3>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
- <FONT FACE="Times New Roman, serif"><B>USING LOCAL TASK STORAGE
- POINTER </B></FONT>
- </P>
-</OL>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">Tasks
+second and cause timeout</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">d3
+= 0;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(
+tSensor3.getInterval() );</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">return
+true;</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+S3Callback() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.print(&quot;S3Callback:
+Emulating measurement. d3=&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">d3
+= random(501); // pick a value from 0 to 500 &quot;centimeters&quot;
+simulating a measurement</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">measure.signal();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(d3);
+</font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">/**
+Main Arduino code</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"> <font face="Courier New, monospace"><font size="2" style="font-size: 10pt">*
+ Not much is left here - everything is taken care of by the framework</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">*/</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+setup() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.begin(115200);</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Serial.println(&quot;TaskScheduler
+StatusRequest Sensor Emulation Test. Complex Test.&quot;); </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">randomSeed(analogRead(A1)+millis());</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+loop() {</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">ts.execute();</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<ol start="3">
+ <li><p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+ <font face="Times New Roman, serif"><b>USING LOCAL TASK STORAGE
+ POINTER </b></font>
+ </p>
+</ol>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">Tasks
can store a pointer to specific variable, structure or array, which
represents variables specific for a particular task. This may be
-needed if you plan to use same callback method for multiple tasks.</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">Consider
+needed if you plan to use same callback method for multiple tasks.</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">Consider
a scenario where you have several sensors of the same type. The
actual process of triggering measurement and collecting information
is identical. The only difference is the sensor address and a
-variable for storing the results. </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">In
+variable for storing the results. </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">In
this case each of the tasks, which performs measurement will utilize
the same callback methods. The only difference will be the variables
-(specific for each of the sensor). </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">Let's
+(specific for each of the sensor). </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">Let's
define a sensor data structure and declare a couple of variables (for
-2 sensors for instance)</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P LANG="" CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>typedef struct {</FONT></FONT></P>
-<P LANG="" CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2> unsigned int
- address;</FONT></FONT></P>
-<P LANG="" CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2> unsigned
-long distance;</FONT></FONT></P>
-<P LANG="" CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>} sensor_data;</FONT></FONT></P>
-<P LANG="" CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<BR>
-</P>
-<P LANG="" CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>sensor_data s1, s2; </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">Two
-separate tasks are running to collect sensor data.</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">(Note
-that both tasks refer to the same callback methods)</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P LANG="" CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>Scheduler ts;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2><SPAN LANG="">Task
-t1(100, </SPAN>TASK_FOREVER<SPAN LANG="">, &amp;Measure, &amp;ts,
-false, &amp;MeasureOn); </SPAN></FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2><SPAN LANG="">Task
-t2(100, </SPAN>TASK_FOREVER<SPAN LANG="">, &amp;Measure, &amp;ts,
-false, &amp;MeasureOn); </SPAN></FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">Assign
-pointers to the respective variables in the <B>setup</B>() method:</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-setup() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 1.48in; margin-bottom: 0in">…</P>
-<P CLASS="western" STYLE="margin-left: 1.48in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>t1.setLtsPointer(&amp;s1);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 1.48in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>t2.setLtsPointer(&amp;s2);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 1.48in; margin-bottom: 0in">…</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">Obtain
-reference to specific <B>sensor_data</B> structure inside the common
-callback method:</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-Measure() {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> Task&amp;
-T = ts.currentTask(); </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> Sensor_data&amp;
-V = *((sensor_data*) T.getLtsPointer());</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-For t1, V will be pointing at s1</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-For t2, V will be pointing at s2</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-Alternatively use the Scheduler method:</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> Sensor_data&amp;
-V1 = *((sensor_data*) ts.currentLts());</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; text-indent: 0.49in; margin-bottom: 0in">
-…</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2> V.distance
-= &lt;calculate your values here&gt;;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<OL START=3>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in; page-break-after: avoid">
- <FONT FACE="Times New Roman, serif"><B>ENABLING TASK PRIORITIZATION
- </B></FONT>
- </P>
-</OL>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
-<BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">In
+2 sensors for instance)</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p lang="en-US" class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">typedef
+struct {</font></font></p>
+<p lang="en-US" class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> unsigned
+int address;</font></font></p>
+<p lang="en-US" class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> unsigned
+long distance;</font></font></p>
+<p lang="en-US" class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}
+sensor_data;</font></font></p>
+<p lang="en-US" class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<br>
+</p>
+<p lang="en-US" class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">sensor_data
+s1, s2; </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">Two
+separate tasks are running to collect sensor data.</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">(Note
+that both tasks refer to the same callback methods)</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p lang="en-US" class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Scheduler
+ts;</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><span lang="en-US">Task
+t1(100, </span></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">TASK_FOREVER</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><span lang="en-US">,
+&amp;Measure, &amp;ts, false, &amp;MeasureOn); </span></font></font>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><span lang="en-US">Task
+t2(100, </span></font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">TASK_FOREVER</font></font><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"><span lang="en-US">,
+&amp;Measure, &amp;ts, false, &amp;MeasureOn); </span></font></font>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">Assign
+pointers to the respective variables in the </font></font><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt"><b>setup</b></font></font><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">()
+method:</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+setup() {</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 1.48in; margin-bottom: 0in">…</p>
+<p class="western" style="margin-left: 1.48in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">t1.setLtsPointer(&amp;s1);</font></font></p>
+<p class="western" style="margin-left: 1.48in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">t2.setLtsPointer(&amp;s2);</font></font></p>
+<p class="western" style="margin-left: 1.48in; margin-bottom: 0in">…</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">Obtain
+reference to specific </font></font><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt"><b>sensor_data</b></font></font><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">
+structure inside the common callback method:</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+Measure() {</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> Task&amp;
+T = ts.currentTask(); </font></font>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> Sensor_data&amp;
+V = *((sensor_data*) T.getLtsPointer());</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+For t1, V will be pointing at s1</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+For t2, V will be pointing at s2</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+Alternatively use the Scheduler method:</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> Sensor_data&amp;
+V1 = *((sensor_data*) ts.currentLts());</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; text-indent: 0.49in; margin-bottom: 0in">
+…</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt"> V.distance
+= &lt;calculate your values here&gt;;</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<ol start="3">
+ <li><p class="western" style="margin-bottom: 0in; page-break-after: avoid">
+ <font face="Times New Roman, serif"><b>ENABLING TASK PRIORITIZATION
+ </b></font>
+ </p>
+</ol>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in; page-break-after: avoid">
+<br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">In
certain cases you want a task to be invoked before others in case of
scheduling collision (tasks ready to be invoked at the same time). In
a flat execution chain scenario tasks are evaluated for execution in
the order they were added to the chain. Therefore a single task has
to wait for the rest of the chain to be evaluated to get a chance
-again. </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">Consider
+again. </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">Consider
a scenario where a task taking gyroscope measurements has to be
invoked as close to the actual scheduling time as possible. That is
-when task prioritization comes to help. </FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">Let’s
+when task prioritization comes to help. </font></font>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">Let’s
say tasks t4 and t5 are taking measurements from gyroscope and
accelerometer, and tasks t1, t2 and t3 are doing something less
-important.</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 11pt">This
-is how such setup is coded:</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#define
-_TASK_PRIORITY</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>#include
-&lt;TaskScheduler.h&gt;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Scheduler
-r, hpr;</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>//
-Tasks</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-t1(1000, TASK_FOREVER, &amp;tCallback, &amp;r); //base priority</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-t2(2000, TASK_FOREVER, &amp;tCallback, &amp;r);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-t3(3000, TASK_FOREVER, &amp;tCallback, &amp;r);</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-t4(10, TASK_FOREVER, &amp;tCallback, &amp;hpr); // higher priority</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Task
-t5(100, TASK_FOREVER, &amp;tCallback, &amp;hpr); //higher priority</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">…</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>void
-setup () {</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-…</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>r.setHighPriorityScheduler(&amp;hpr);
-</FONT></FONT>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in">
-<FONT FACE="Courier New, monospace"><FONT SIZE=2>r.enableAll(true);
-// this will recursively enable the higher priority tasks as well</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.98in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>}</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<OL START=3>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Times New Roman, serif"><B>FUTHER
- INFROMATION</B></FONT></P>
-</OL>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Please
+important.</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Times New Roman, serif"><font size="2" style="font-size: 11pt">This
+is how such setup is coded:</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#define
+_TASK_PRIORITY</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">#include
+&lt;TaskScheduler.h&gt;</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Scheduler
+r, hpr;</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">//
+Tasks</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+t1(1000, TASK_FOREVER, &amp;tCallback, &amp;r); //base priority</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+t2(2000, TASK_FOREVER, &amp;tCallback, &amp;r);</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+t3(3000, TASK_FOREVER, &amp;tCallback, &amp;r);</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+t4(10, TASK_FOREVER, &amp;tCallback, &amp;hpr); // higher priority</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Task
+t5(100, TASK_FOREVER, &amp;tCallback, &amp;hpr); //higher priority</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">…</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">void
+setup () {</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+…</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">r.setHighPriorityScheduler(&amp;hpr);
+</font></font>
+</p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in">
+<font face="Courier New, monospace"><font size="2" style="font-size: 10pt">r.enableAll(true);
+// this will recursively enable the higher priority tasks as well</font></font></p>
+<p class="western" style="margin-left: 0.98in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">}</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<ol start="3">
+ <li><p class="western" style="margin-bottom: 0in"><font face="Times New Roman, serif"><b>FUTHER
+ INFROMATION</b></font></p>
+</ol>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Please
refer to examples, provided with TaskScheduler package for further
-information and implementation options.</FONT></FONT></P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><BR>
-</P>
-<P CLASS="western" STYLE="margin-left: 0.49in; margin-bottom: 0in"><FONT FACE="Courier New, monospace"><FONT SIZE=2>Real
-time examples of TaskScheduler are available here:</FONT></FONT></P>
-<OL>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in"><FONT COLOR="#0000ff"><U><A HREF="http://www.instructables.com/id/APIS-Automated-Plant-Irrigation-System/"><FONT FACE="Courier New, monospace">http://www.instructables.com/id/APIS-Automated-Plant-Irrigation-System/</FONT></A></U></FONT></P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in"><FONT COLOR="#0000ff"><U><A HREF="http://www.instructables.com/id/Wave-your-hand-to-control-OWI-Robotic-Arm-no-strin/"><FONT FACE="Courier New, monospace">http://www.instructables.com/id/Wave-your-hand-to-control-OWI-Robotic-Arm-no-strin/</FONT></A></U></FONT></P>
- <LI><P CLASS="western" STYLE="margin-bottom: 0in"><FONT COLOR="#0000ff"><U><A HREF="http://www.instructables.com/id/Arduino-Nano-based-Hexbug-Scarab-Robotic-Spider"><FONT FACE="Courier New, monospace">http://www.instructables.com/id/Arduino-Nano-based-Hexbug-Scarab-Robotic-Spider</FONT></A></U></FONT></P>
-</OL>
-<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
-</P>
-<DIV TYPE=FOOTER>
- <P STYLE="margin-top: 0.35in; margin-bottom: 0in"> <SDFIELD TYPE=PAGE SUBTYPE=RANDOM FORMAT=ARABIC>33</SDFIELD></P>
-</DIV>
-</BODY>
-</HTML>
+information and implementation options.</font></font></p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><br>
+</p>
+<p class="western" style="margin-left: 0.49in; margin-bottom: 0in"><font face="Courier New, monospace"><font size="2" style="font-size: 10pt">Real
+time examples of TaskScheduler are available here:</font></font></p>
+<ol>
+ <li><p class="western" style="margin-bottom: 0in"><font color="#0000ff"><u><a href="http://www.instructables.com/id/APIS-Automated-Plant-Irrigation-System/"><font face="Courier New, monospace">http://www.instructables.com/id/APIS-Automated-Plant-Irrigation-System/</font></a></u></font></p>
+ <li><p class="western" style="margin-bottom: 0in"><font color="#0000ff"><u><a href="http://www.instructables.com/id/Wave-your-hand-to-control-OWI-Robotic-Arm-no-strin/"><font face="Courier New, monospace">http://www.instructables.com/id/Wave-your-hand-to-control-OWI-Robotic-Arm-no-strin/</font></a></u></font></p>
+ <li><p class="western" style="margin-bottom: 0in"><font color="#0000ff"><u><a href="http://www.instructables.com/id/Arduino-Nano-based-Hexbug-Scarab-Robotic-Spider"><font face="Courier New, monospace">http://www.instructables.com/id/Arduino-Nano-based-Hexbug-Scarab-Robotic-Spider</font></a></u></font></p>
+</ol>
+<p class="western" style="margin-bottom: 0in"><br>
+</p>
+<div title="footer">
+ <p style="margin-top: 0.35in; margin-bottom: 0in"> <sdfield type=PAGE subtype=RANDOM format=ARABIC>33</sdfield></p>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/keywords.txt b/keywords.txt
index 8e81a2b..4ad052a 100644
--- a/keywords.txt
+++ b/keywords.txt
@@ -22,6 +22,7 @@ enableAll KEYWORD2
currentTask KEYWORD2
currentLts KEYWORD2
execute KEYWORD2
+startNow KEYWORD2
allowSleep KEYWORD2
enable KEYWORD2
enableIfNot KEYWORD2
diff --git a/library.properties b/library.properties
index 271698c..fb149bf 100644
--- a/library.properties
+++ b/library.properties
@@ -1,9 +1,9 @@
name=TaskScheduler
-version=2.0.1
+version=2.1.0
author=Anatoli Arkhipenko <arkhipenko@hotmail.com>
maintainer=Anatoli Arkhipenko <arkhipenko@hotmail.com>
sentence=A light-weight cooperative multitasking library for arduino microcontrollers.
-paragraph=Supports: periodic task execution (with dynamic execution period in milliseconds – frequency of execution), number of iterations (limited or infinite number of iterations), execution of tasks in predefined sequence, dynamic change of task execution parameters (frequency, number of iterations, callback methods), power saving via entering IDLE sleep mode when tasks are not scheduled to run, event-driven task invocation via Status Request object, task IDs and Control Points for error handling and watchdog timer, Local Task Storage pointer (allowing use of same callback code for multiple tasks), layered task prioritization.
+paragraph=Supports: periodic task execution (with dynamic execution period in milliseconds or microseconds – frequency of execution), number of iterations (limited or infinite number of iterations), execution of tasks in predefined sequence, dynamic change of task execution parameters (frequency, number of iterations, callback methods), power saving via entering IDLE sleep mode when tasks are not scheduled to run, event-driven task invocation via Status Request object, task IDs and Control Points for error handling and watchdog timer, Local Task Storage pointer (allowing use of same callback code for multiple tasks), layered task prioritization.
category=Timing
url=https://github.com/arkhipenko/TaskScheduler.git
architectures=*
diff --git a/src/TaskScheduler.h b/src/TaskScheduler.h
index 8eea44b..e81212c 100644
--- a/src/TaskScheduler.h
+++ b/src/TaskScheduler.h
@@ -86,6 +86,7 @@
//
// v2.1.0:
// 2016-02-01 - support for microsecond resolution
+// 2016-02-02 - added Scheduler baseline start time reset method: startNow()
/* ============================================
Cooperative multitasking library code is placed under the MIT license
@@ -114,7 +115,6 @@ THE SOFTWARE.
#include <Arduino.h>
-
#ifndef _TASKSCHEDULER_H_
#define _TASKSCHEDULER_H_
@@ -141,22 +141,24 @@ THE SOFTWARE.
#define _TASK_TIME_FUNCTION() millis()
- #endif
+ #endif // _TASK_MICRO_RES
+
#ifdef _TASK_SLEEP_ON_IDLE_RUN
#ifdef ARDUINO_ARCH_AVR
#include <avr/sleep.h>
#include <avr/power.h>
-#endif
+#endif // ARDUINO_ARCH_AVR
#ifdef ARDUINO_ARCH_ESP8266
extern "C" {
#include "user_interface.h"
}
-#endif
+#define _TASK_ESP8266_DLY_THRESHOLD 200L
+#endif // ARDUINO_ARCH_ESP8266
-#endif
+#endif // _TASK_SLEEP_ON_IDLE_RUN
#define TASK_IMMEDIATE 0
#define TASK_FOREVER (-1)
@@ -175,7 +177,7 @@ extern "C" {
#define TASK_MINUTE 60000000L
#define TASK_HOUR 3600000000L
-#endif
+#endif // _TASK_MICRO_RES
#ifdef _TASK_STATUS_REQUEST
@@ -197,7 +199,7 @@ class StatusRequest {
unsigned int iCount; // number of statuses to wait for. waiting for more that 65000 events seems unreasonable: unsigned int should be sufficient
int iStatus; // status of the last completed request. negative = error; zero = OK; >positive = OK with a specific status
};
-#endif
+#endif // _TASK_STATUS_REQUEST
typedef struct {
@@ -213,7 +215,7 @@ class Scheduler;
#ifdef _TASK_WDT_IDS
static unsigned int __task_id_counter = 0; // global task ID counter for assiging task IDs automatically.
-#endif
+#endif // _TASK_WDT_IDS
class Task {
friend class Scheduler;
@@ -221,7 +223,7 @@ class Task {
Task(unsigned long aInterval=0, long aIterations=0, void (*aCallback)()=NULL, Scheduler* aScheduler=NULL, bool aEnable=false, bool (*aOnEnable)()=NULL, void (*aOnDisable)()=NULL);
#ifdef _TASK_STATUS_REQUEST
Task(void (*aCallback)()=NULL, Scheduler* aScheduler=NULL, bool (*aOnEnable)()=NULL, void (*aOnDisable)()=NULL);
-#endif
+#endif // _TASK_STATUS_REQUEST
void enable();
bool enableIfNot();
@@ -244,24 +246,24 @@ class Task {
#ifdef _TASK_TIMECRITICAL
inline long getOverrun() { return iOverrun; }
inline long getStartDelay() { return iStartDelay; }
-#endif
+#endif // _TASK_TIMECRITICAL
inline bool isFirstIteration() { return (iRunCounter <= 1); }
inline bool isLastIteration() { return (iIterations == 0); }
#ifdef _TASK_STATUS_REQUEST
void waitFor(StatusRequest* aStatusRequest, unsigned long aInterval = 0, long aIterations = 1);
void waitForDelayed(StatusRequest* aStatusRequest, unsigned long aInterval = 0, long aIterations = 1);
inline StatusRequest* getStatusRequest() {return iStatusRequest; }
-#endif
+#endif // _TASK_STATUS_REQUEST
#ifdef _TASK_WDT_IDS
inline void setId(unsigned int aID) { iTaskID = aID; }
inline unsigned int getId() { return iTaskID; }
inline void setControlPoint(unsigned int aPoint) { iControlPoint = aPoint; }
inline unsigned int getControlPoint() { return iControlPoint; }
-#endif
+#endif // _TASK_WDT_IDS
#ifdef _TASK_LTS_POINTER
inline void setLtsPointer(void *aPtr) { iLTS = aPtr; }
inline void* getLtsPointer() { return iLTS; }
-#endif
+#endif // _TASK_LTS_POINTER
private:
void reset();
@@ -273,7 +275,7 @@ class Task {
#ifdef _TASK_TIMECRITICAL
volatile long iOverrun; // negative if task is "catching up" to it's schedule (next invocation time is already in the past)
volatile long iStartDelay; // actual execution of the task's callback method was delayed by this number of millis
-#endif
+#endif // _TASK_TIMECRITICAL
volatile long iIterations; // number of iterations left. 0 - last iteration. -1 - infinite iterations
long iSetIterations; // number of iterations originally requested (for restarts)
unsigned long iRunCounter; // current number of iteration (starting with 1). Resets on enable.
@@ -284,20 +286,20 @@ class Task {
Scheduler *iScheduler; // pointer to the current scheduler
#ifdef _TASK_STATUS_REQUEST
StatusRequest *iStatusRequest; // pointer to the status request task is or was waiting on
-#endif
+#endif // _TASK_STATUS_REQUEST
#ifdef _TASK_WDT_IDS
unsigned int iTaskID; // task ID (for debugging and watchdog identification)
unsigned int iControlPoint; // current control point within the callback method. Reset to 0 by scheduler at the beginning of each pass
-#endif
+#endif // _TASK_WDT_IDS
#ifdef _TASK_LTS_POINTER
void *iLTS; // pointer to task's local storage. Needs to be recast to appropriate type (usually a struct).
-#endif
+#endif // _TASK_LTS_POINTER
};
#ifdef _TASK_PRIORITY
static Scheduler* iCurrentScheduler;
-#endif
+#endif // _TASK_PRIORITY
class Scheduler {
friend class Task;
@@ -309,29 +311,30 @@ class Scheduler {
void disableAll(bool aRecursive = true);
void enableAll(bool aRecursive = true);
bool execute(); // Returns true if at none of the tasks' callback methods was invoked (true if idle run)
+ void startNow(bool aRecursive = true); // reset ALL active tasks to immediate execution NOW.
inline Task& currentTask() {return *iCurrent; }
#ifdef _TASK_SLEEP_ON_IDLE_RUN
void allowSleep(bool aState = true);
-#endif
+#endif // _TASK_SLEEP_ON_IDLE_RUN
#ifdef _TASK_LTS_POINTER
inline void* currentLts() {return iCurrent->iLTS; }
-#endif
+#endif // _TASK_LTS_POINTER
#ifdef _TASK_TIMECRITICAL
inline bool isOverrun() { return (iCurrent->iOverrun < 0); }
-#endif
+#endif // _TASK_TIMECRITICAL
#ifdef _TASK_PRIORITY
void setHighPriorityScheduler(Scheduler* aScheduler);
static Scheduler& currentScheduler() { return *(iCurrentScheduler); };
-#endif
+#endif // _TASK_PRIORITY
private:
Task *iFirst, *iLast, *iCurrent; // pointers to first, last and current tasks in the chain
#ifdef _TASK_SLEEP_ON_IDLE_RUN
bool iAllowSleep; // indication if putting avr to IDLE_SLEEP mode is allowed by the program at this time.
-#endif
+#endif // _TASK_SLEEP_ON_IDLE_RUN
#ifdef _TASK_PRIORITY
Scheduler *iHighPriority; // Pointer to a higher priority scheduler
-#endif
+#endif // _TASK_PRIORITY
};
@@ -346,10 +349,10 @@ Task::Task( unsigned long aInterval, long aIterations, void (*aCallback)(), Sche
if (aScheduler) aScheduler->addTask(*this);
#ifdef _TASK_STATUS_REQUEST
iStatusRequest = NULL;
-#endif
+#endif // _TASK_STATUS_REQUEST
#ifdef _TASK_WDT_IDS
iTaskID = ++__task_id_counter;
-#endif
+#endif // _TASK_WDT_IDS
if (aEnable) enable();
}
@@ -366,7 +369,7 @@ Task::Task( void (*aCallback)(), Scheduler* aScheduler, bool (*aOnEnable)(), voi
iStatusRequest = NULL;
#ifdef _TASK_WDT_IDS
iTaskID = ++__task_id_counter;
-#endif
+#endif // _TASK_WDT_IDS
}
/** Signals completion of the StatusRequest by one of the participating events
@@ -410,7 +413,7 @@ void Task::waitForDelayed(StatusRequest* aStatusRequest, unsigned long aInterval
enable();
}
}
-#endif
+#endif // _TASK_STATUS_REQUEST
/** Resets (initializes) the task/
* Task is not enabled and is taken out
@@ -428,16 +431,16 @@ void Task::reset() {
#ifdef _TASK_TIMECRITICAL
iOverrun = 0;
iStartDelay = 0;
-#endif
+#endif // _TASK_TIMECRITICAL
#ifdef _TASK_WDT_IDS
iControlPoint = 0;
-#endif
+#endif // _TASK_WDT_IDS
#ifdef _TASK_LTS_POINTER
iLTS = NULL;
-#endif
+#endif // _TASK_LTS_POINTER
#ifdef _TASK_STATUS_REQUEST
iStatus.waiting = 0;
-#endif
+#endif // _TASK_STATUS_REQUEST
}
/** Explicitly set Task execution parameters
@@ -580,10 +583,10 @@ void Scheduler::init() {
iCurrent = NULL;
#ifdef _TASK_PRIORITY
iHighPriority = NULL;
-#endif
+#endif // _TASK_PRIORITY
#ifdef _TASK_SLEEP_ON_IDLE_RUN
allowSleep(true);
-#endif
+#endif // _TASK_SLEEP_ON_IDLE_RUN
}
/** Appends task aTask to the tail of the execution chain.
@@ -651,8 +654,8 @@ void Scheduler::disableAll(bool aRecursive) {
current = current->iNext;
}
#ifdef _TASK_PRIORITY
- if (aRecursive && iHighPriority) iHighPriority->disableAll(aRecursive);
-#endif
+ if (aRecursive && iHighPriority) iHighPriority->disableAll(true);
+#endif // _TASK_PRIORITY
}
@@ -666,8 +669,8 @@ void Scheduler::disableAll(bool aRecursive) {
current = current->iNext;
}
#ifdef _TASK_PRIORITY
- if (aRecursive && iHighPriority) iHighPriority->enableAll(aRecursive);
-#endif
+ if (aRecursive && iHighPriority) iHighPriority->enableAll(true);
+#endif // _TASK_PRIORITY
}
/** Sets scheduler for the higher priority tasks (support for layered task priority)
@@ -680,9 +683,9 @@ void Scheduler::setHighPriorityScheduler(Scheduler* aScheduler) {
if (iHighPriority) {
iHighPriority->allowSleep(false); // Higher priority schedulers should not do power management
}
-#endif
+#endif // _TASK_SLEEP_ON_IDLE_RUN
};
-#endif
+#endif // _TASK_PRIORITY
#ifdef _TASK_SLEEP_ON_IDLE_RUN
@@ -691,12 +694,26 @@ void Scheduler::allowSleep(bool aState) {
#ifdef ARDUINO_ARCH_ESP8266
wifi_set_sleep_type( iAllowSleep ? LIGHT_SLEEP_T : NONE_SLEEP_T );
-#endif
+#endif // ARDUINO_ARCH_ESP8266
}
-#endif
+#endif // _TASK_SLEEP_ON_IDLE_RUN
+void Scheduler::startNow( bool aRecursive ) {
+ unsigned long t = _TASK_TIME_FUNCTION();
+
+ iCurrent = iFirst;
+ while (iCurrent) {
+ if ( iCurrent->iStatus.enabled ) iCurrent->iPreviousMillis = t - iCurrent->iDelay;
+ iCurrent = iCurrent->iNext;
+ }
+
+#ifdef _TASK_PRIORITY
+ if (aRecursive && iHighPriority) iHighPriority->startNow( true );
+#endif // _TASK_PRIORITY
+}
+
/** Makes one pass through the execution chain.
* Tasks are executed in the order they were added to the chain
* There is no concept of priority
@@ -710,7 +727,7 @@ bool Scheduler::execute() {
#ifdef ARDUINO_ARCH_ESP8266
unsigned long t1 = micros();
unsigned long t2 = 0;
-#endif
+#endif // ARDUINO_ARCH_ESP8266
iCurrent = iFirst;
@@ -720,7 +737,7 @@ bool Scheduler::execute() {
// If scheduler for higher priority tasks is set, it's entire chain is executed on every pass of the base scheduler
if (iHighPriority) idleRun = iHighPriority->execute() && idleRun;
iCurrentScheduler = this;
-#endif
+#endif // _TASK_PRIORITY
do {
if ( iCurrent->iStatus.enabled ) {
@@ -728,7 +745,7 @@ bool Scheduler::execute() {
#ifdef _TASK_WDT_IDS
// For each task the control points are initialized to avoid confusion because of carry-over:
iCurrent->iControlPoint = 0;
-#endif
+#endif // _TASK_WDT_IDS
// Disable task on last iteration:
if (iCurrent->iIterations == 0) {
@@ -752,7 +769,7 @@ bool Scheduler::execute() {
}
iCurrent->iStatus.waiting = 0;
}
-#endif
+#endif // _TASK_STATUS_REQUEST
if ( m - iCurrent->iPreviousMillis < iCurrent->iDelay ) break;
@@ -766,7 +783,7 @@ bool Scheduler::execute() {
unsigned long p = iCurrent->iPreviousMillis;
iCurrent->iOverrun = (long) ( p + i - m );
iCurrent->iStartDelay = (long) ( m - p );
-#endif
+#endif // _TASK_TIMECRITICAL
iCurrent->iDelay = i;
if ( iCurrent->iCallback ) {
@@ -789,15 +806,15 @@ bool Scheduler::execute() {
/* The program will continue from here after the timer timeout ~1 ms */
sleep_disable(); /* First thing to do is disable sleep. */
-#endif
+#endif // ARDUINO_ARCH_AVR
#ifdef ARDUINO_ARCH_ESP8266
// to do: find suitable sleep function for esp8266
t2 = micros() - t1;
- if (t2 < 1000L) delay(1); // ESP8266 implementation of delay() uses timers and yield
-#endif
+ if (t2 < _TASK_ESP8266_DLY_THRESHOLD) delay(1); // ESP8266 implementation of delay() uses timers and yield
+#endif // ARDUINO_ARCH_ESP8266
}
-#endif
+#endif // _TASK_SLEEP_ON_IDLE_RUN
return (idleRun);
}