I have also added a task to monitor the execution time:
void vTaskMonitor(void *pvParameters) {
TickType_t xLastWakeTime;
for(;;) {
xLastWakeTime = xTaskGetTickCount();
vTaskDelayUntil(&xLastWakeTime, pdMS_TO_TICKS(1000));
if (xLastWakeTime > pdMS_TO_TICKS(1000)) {
printf("Task missed its deadline\n");
}
}
}
I have also added a task to monitor the execution time:
void vTaskMonitor(void *pvParameters) {
TickType_t xLastWakeTime;
for(;;) {
xLastWakeTime = xTaskGetTickCount();
vTaskDelayUntil(&xLastWakeTime, pdMS_TO_TICKS(1000));
if (xLastWakeTime > pdMS_TO_TICKS(1000)) {
printf("Task missed its deadline\n");
}
}
}