mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-05-09 14:49:04 -04:00
Finish off timers implementation.
This commit is contained in:
parent
3c6ae51faf
commit
cb238fc1fa
|
@ -135,7 +135,7 @@ static void prvProcessExpiredTimer( portTickType xNextExpireTime, portTickType x
|
||||||
* The tick count has overflowed. Switch the timer lists after ensuring the
|
* The tick count has overflowed. Switch the timer lists after ensuring the
|
||||||
* current timer list does not still reference some timers.
|
* current timer list does not still reference some timers.
|
||||||
*/
|
*/
|
||||||
static void prvSwitchTimerLists( portTickType xLastTime, portTickType xTimeNow ) PRIVILEGED_FUNCTION;
|
static void prvSwitchTimerLists( portTickType xLastTime ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Obtain the current tick count, setting *pxTimerListsWereSwitched to pdTRUE
|
* Obtain the current tick count, setting *pxTimerListsWereSwitched to pdTRUE
|
||||||
|
@ -391,7 +391,7 @@ static portTickType xLastTime = ( portTickType ) 0U;
|
||||||
|
|
||||||
if( xTimeNow < xLastTime )
|
if( xTimeNow < xLastTime )
|
||||||
{
|
{
|
||||||
prvSwitchTimerLists( xLastTime, xTimeNow );
|
prvSwitchTimerLists( xLastTime );
|
||||||
*pxTimerListsWereSwitched = pdTRUE;
|
*pxTimerListsWereSwitched = pdTRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -517,7 +517,7 @@ portTickType xTimeNow;
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
static void prvSwitchTimerLists( portTickType xLastTime, portTickType xTimeNow )
|
static void prvSwitchTimerLists( portTickType xLastTime )
|
||||||
{
|
{
|
||||||
portTickType xNextExpireTime, xReloadTime;
|
portTickType xNextExpireTime, xReloadTime;
|
||||||
xList *pxTemp;
|
xList *pxTemp;
|
||||||
|
|
Loading…
Reference in a new issue