//------------------------------------------------------------------------------ void setup() { Serial.begin(9600); // wait for USB Serial while (!Serial) {} // start kernel and continue main thread as loop chBegin(mainThread); while(1); }
//------------------------------------------------------------------------------ void setup() { Serial.begin(9600); // wait for USB Serial while (!Serial) {} Serial.println(); if (CH_TIME_QUANTUM) { Serial.println("You must set CH_TIME_QUANTUM zero in"); Serial.println("libraries/ChibiOS_AVR/utility/chconf.h"); Serial.println("to enable cooperative scheduling."); while(1); } // start ChibiOS chBegin(mainThread); // chBegin() will not return while(1) {} }
//------------------------------------------------------------------------------ void setup() { chBegin(chSetup); while(1) { } }
extern "C" int main(void) { chBegin(mainFunc); //chBegin(doCalibrate); }