May 2020
Intermediate to advanced
496 pages
13h 54m
English
When creating a few tasks in main before starting the scheduler, it's necessary to check the return values as each task is created. Of course, there are many ways to accomplish this. Let's take a look at two of them:
if( xTaskCreate(GreenTask, "GreenTask", STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL) != pdPASS){ while(1) }
retVal = xTaskCreate(BlueTask, "BlueTask", ...