Hello,
i have a K22FX with FreeRTOS. I use this cpu at different frequency (120Mhz,16Mhz, 4Mhz). For have a costant delay with this different setting what i have to do?
In my function i use :
vTaskDelay(100 / portTICK_RATE_MS); //100ms
for have a xxx ms of delay.
portTICK_RATE_MS is defined as portTICK_PERIOD_MS
and
portTICK_PERIOD_MS as ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
where
configTICK_RATE_HZ ((TickType_t)1000)
It's right if i set configTICK_RATE_HZ as my CPU frequency in Hz?
Thanks