Hi. First I apologise for my poor english. Now I’m having a feel problems with the functions vTaskDelay and vTaskDelayUntil on pic18f452. They simply doesn’t work. I set
#define INCLUDE_vTaskDelayUntil 1
#define INCLUDE_vTaskDelay 1
and when I use the functions on the example on website:
void vTaskFunction( void * pvParameters )
const portTickType xFrequency = 10;
// Initialise the xLastWakeTime variable with the current time.
xLastWakeTime = xTaskGetTickCount();
for( ;; )
// Wait for the next cycle.
vTaskDelayUntil( &xLastWakeTime, xFrequency );
// Perform action here.
the process block indefinitely. When I comment the function delay and put a for to make a delay and toggle a led the function work’s fine. It’s analogue when I use the example with vTaskDelay.