Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
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
51 #endif
52 }
53 
54 void loop()
55 {
56  yield();
57 }
void loop()
static bool startLoop(func_t taskLoop, size_t stackSize=DEFAULT_STACK_SIZE)
Definition: Scheduler.h:65
SchedulerClass Scheduler
Definition: Scheduler.cpp:53
void yield(void)
Definition: Scheduler.cpp:153
void setup()