29 #if defined(ARDUINO_ARCH_SAMD) && (USB_PID == 0x8D21) 30 #define Serial SerialUSB 43 const unsigned int N = 100;
45 for (
unsigned int i = 0; i <= N; i++) {
56 const unsigned int N = 10;
58 for (
unsigned int i = 1; i <= N; i++) {
67 Serial.print(millis());
68 Serial.println(F(
":printAlive::alive..."));
80 Serial.println(F(
"SchedulerTaskCompletionQueue: started"));
90 Serial.print(millis());
91 Serial.print(F(
":setup::push task @sumTo100 = "));
96 Serial.print(millis());
97 Serial.print(F(
":setup::push task @factTo10 = "));
102 Serial.print(millis());
103 Serial.print(F(
":setup::push task @printAlive = "));
113 Serial.print(millis());
114 Serial.print(F(
":loop::sum100 = "));
116 Serial.print(F(
", fact10 = "));
SchedulerClass::func_t task_t
static bool startLoop(func_t taskLoop, size_t stackSize=DEFAULT_STACK_SIZE)
const unsigned int TASKQ_MAX
volatile unsigned int sum100
volatile unsigned long int fact10
Queue< task_t, TASKQ_MAX > taskq