27 #if defined(ARDUINO_ARCH_SAMD) && (USB_PID == 0x8D21) 28 #define Serial SerialUSB 37 Serial.println(F(
"SchedulerChannel: started"));
48 static unsigned int count = 0;
49 Serial.print(millis());
50 Serial.print(F(
":loop:count="));
51 Serial.println(count++);
52 unsigned long start = millis();
53 await(millis() - start >= 1000);
63 msg_t msg = { (int) &msg, 0 };
65 Serial.print(millis());
66 Serial.print(F(
":messageSender#"));
67 Serial.print(msg.
ref);
68 Serial.print(F(
"::send msg.nr="));
69 Serial.println(msg.
nr);
70 chan.
send(&msg,
sizeof(msg));
79 chan.
recv(&msg,
sizeof(msg));
80 Serial.print(millis());
81 Serial.print(F(
":messageReceiver#"));
82 Serial.print((
int) &msg);
83 Serial.print(F(
"::receive msg.ref="));
84 Serial.print(msg.ref);
85 Serial.print(F(
", msg.nr="));
86 Serial.println(msg.nr);
int recv(void *buf, size_t size)
static bool startLoop(func_t taskLoop, size_t stackSize=DEFAULT_STACK_SIZE)
int send(const void *buf, size_t size)