I'm getting an error while trying to compile the code when using vTaskDelayUntil function
This is the error:
This is the simple code that produces an error:
void vPeriodicTask(void *args)
{
TickType_t xLastWakeTime;
const TickType_t xFrequency = 1000; // 1 s
/* Inicijalizacija xLastWakeTime za vTaskDelayUntil. */
xLastWakeTime = xTaskGetTickCount();
while (true)
{
profiler++;
vTaskDelayUntil(&xLastWakeTime, xFrequency);
}
in the main I created task before starting a scheduler:
xTaskCreate( vPeriodicTask, "Periodicki", 100, NULL, 5, NULL );
}
I tried to edit FreeRTOSConfig.h file by adding line 172 but the error persists:
Can I simply edit FreeRTOSConfig.h file if I want to change the behavior and functionality of Freertos?