Improve how TimerDemo.c manages differences between the tick count and its own internal tick count, which can temporarily differ when the tick hook is called while the scheduler is suspended.

This commit is contained in:
Richard Barry
2014-02-04 14:55:53 +00:00
parent 481db56078
commit 03f9bbda52
2 changed files with 26 additions and 36 deletions

View File

@ -326,6 +326,9 @@ EventBits_t uxSynchronisationBit, uxReturned;
case. */
configASSERT( ( uxReturned & ebALL_SYNC_BITS ) == ebALL_SYNC_BITS );
/* Remove compiler warning if configASSERT() is not defined. */
( void ) uxReturned;
/* Wait until the 'test master' task unsuspends this task again. */
vTaskSuspend( NULL );