You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think loop() never reaches in this example. Maybe some other task named "background" should be introduces.
voidsetup() {
// initialize the digital pin as an output:pinMode(BOARD_LED_PIN, OUTPUT);
xTaskCreate(vLEDFlashTask,
(signed portCHAR *)"Task1",
configMINIMAL_STACK_SIZE,
NULL,
tskIDLE_PRIORITY + 2,
NULL);
vTaskStartScheduler();
// Will not get here unless a task calls vTaskEndScheduler ()
}
voidloop() {
//wrong! never reached // Insert background code here
}
// Force init to be called *first*, i.e. before static object allocation.// Otherwise, statically allocated objects that need libmaple may fail.__attribute__((constructor)) void premain() {
init();
}
intmain(void) {
setup();
while (true) {
loop();
}
return0;
}
The text was updated successfully, but these errors were encountered:
I think loop() never reaches in this example. Maybe some other task named "background" should be introduces.
The text was updated successfully, but these errors were encountered: