Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
SchedulerBenchmarkSize.ino
Go to the documentation of this file.
1
29
// Comment for baseline
30
#define TASKS
31
32
#ifdef TASKS
33
#include <
Scheduler.h
>
34
35
// Check for SparkFun SAMD21 Breakout
36
#if defined(ARDUINO_ARCH_SAMD) && (USB_PID == 0x8D21)
37
#define Serial SerialUSB
38
#endif
39
40
#endif
41
42
void
setup
()
43
{
44
Serial.begin(57600);
45
while
(!Serial);
46
Serial.println(F(
"SchedulerBenchmarkSize: started"
));
47
Serial.flush();
48
49
#ifdef TASKS
50
Scheduler
.
startLoop
(
loop
);
51
#endif
52
}
53
54
void
loop
()
55
{
56
yield
();
57
}
loop
void loop()
Definition:
SchedulerBenchmarkSize.ino:54
SchedulerClass::startLoop
static bool startLoop(func_t taskLoop, size_t stackSize=DEFAULT_STACK_SIZE)
Definition:
Scheduler.h:65
Scheduler
SchedulerClass Scheduler
Definition:
Scheduler.cpp:53
yield
void yield(void)
Definition:
Scheduler.cpp:153
Scheduler.h
setup
void setup()
Definition:
SchedulerBenchmarkSize.ino:42
examples
SchedulerBenchmarkSize
SchedulerBenchmarkSize.ino
Generated on Thu Aug 31 2017 12:52:29 for Arduino-Scheduler by
1.8.11