mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-06-04 03:19:04 -04:00
Fix: Comment - xTaskIncrementTick loop - to adhere to demo requirement (#162)
Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
This commit is contained in:
parent
2f14899ce8
commit
16bc35c21c
13
portable/ThirdParty/GCC/Posix/port.c
vendored
13
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -366,12 +366,15 @@ uint64_t xExpectedTicks;
|
|||
|
||||
/* Tick Increment, accounting for any lost signals or drift in
|
||||
* the timer. */
|
||||
xExpectedTicks = (prvGetTimeNs() - prvStartTimeNs)
|
||||
/ (portTICK_RATE_MICROSECONDS * 1000);
|
||||
do {
|
||||
/*
|
||||
* Comment code to adjust timing according to full demo requirements
|
||||
* xExpectedTicks = (prvGetTimeNs() - prvStartTimeNs)
|
||||
* / (portTICK_RATE_MICROSECONDS * 1000);
|
||||
* do { */
|
||||
xTaskIncrementTick();
|
||||
prvTickCount++;
|
||||
} while (prvTickCount < xExpectedTicks);
|
||||
/* prvTickCount++;
|
||||
* } while (prvTickCount < xExpectedTicks);
|
||||
*/
|
||||
|
||||
#if ( configUSE_PREEMPTION == 1 )
|
||||
/* Select Next Task. */
|
||||
|
|
Loading…
Reference in a new issue