void vTaskFunction( void * pvParameters )
{
/* Block for 1000ms. */
const portTickType xDelay = 1000 / portTICK_RATE_MS;
for( ;; )
{
LATA = ~LATA;
vTaskDelay( xDelay );
}
}
to toggle the LED’s on port a.
Everything works, however, instead of taking 1000 milliseconds (1 second) blocks for about 8 seconds. I have not modified any other settings for it to work like this. A block of 2 ms is still visible to the naked eye.
I can modify PIC configuration bits and oscillator settings, change the configCPU_CLOCK_HZ from 32000 up to 16000000, and see very little change.
If you need me to post more code or any configuration details please let me know.Thanks