This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634: Using vTaskDelayUntil function

Part Number: AM2634

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?