Add some tick interrupt overflow protection to the timers module. This is not tested yet and still a work in progress.

This commit is contained in:
Richard Barry 2011-02-10 19:09:35 +00:00
parent 671ca2724e
commit 7ee534e4c2
5 changed files with 124 additions and 27 deletions

View file

@ -1481,7 +1481,7 @@ signed portBASE_TYPE xReturn;
if( pxQueue->uxMessagesWaiting == ( unsigned portBASE_TYPE ) 0U )
{
/* There is nothing in the queue, block for the specified period. */
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
}
}