In the “FreeRTOSConfig.h” file, this is declared:
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
In my program, I have this declared:
#define mainLED_TOGGLE_RATE ( ( portTickType ) 5000 / portTICK_RATE_MS )
When I use this:
vTaskDelayUntil( &xLastFlashTime, mainLED_TOGGLE_RATE );
I would expect it to flash every 5 seconds; however, it’s flashing at about 7 or 8 seconds. After reading the application manual, I think I understand this topic, but clearly I do not. Can anyone point out the error of my ways?