Fix: Comment - xTaskIncrementTick loop - to adhere to demo requirement (#162)

Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
This commit is contained in:
alfred gedeon 2020-09-10 14:36:34 -07:00 committed by GitHub
parent 2f14899ce8
commit 16bc35c21c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,12 +366,15 @@ uint64_t xExpectedTicks;
/* Tick Increment, accounting for any lost signals or drift in /* Tick Increment, accounting for any lost signals or drift in
* the timer. */ * the timer. */
xExpectedTicks = (prvGetTimeNs() - prvStartTimeNs) /*
/ (portTICK_RATE_MICROSECONDS * 1000); * Comment code to adjust timing according to full demo requirements
do { * xExpectedTicks = (prvGetTimeNs() - prvStartTimeNs)
* / (portTICK_RATE_MICROSECONDS * 1000);
* do { */
xTaskIncrementTick(); xTaskIncrementTick();
prvTickCount++; /* prvTickCount++;
} while (prvTickCount < xExpectedTicks); * } while (prvTickCount < xExpectedTicks);
*/
#if ( configUSE_PREEMPTION == 1 ) #if ( configUSE_PREEMPTION == 1 )
/* Select Next Task. */ /* Select Next Task. */