mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-26 21:18:33 -04:00
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:
parent
481db56078
commit
03f9bbda52
2 changed files with 26 additions and 36 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue