@ -840,9 +840,9 @@ tskTCB * pxNewTCB;
# endif
/*-----------------------------------------------------------*/
# if ( INCLUDE_eTask StateGet == 1 )
# if ( INCLUDE_eTask Get State == 1 )
eTaskState eTask StateGet ( xTaskHandle pxTask )
eTaskState eTask Get State( xTaskHandle pxTask )
{
eTaskState eReturn ;
xList * pxStateList ;
@ -1322,7 +1322,7 @@ void vTaskSuspendAll( void )
# if ( configUSE_TICKLESS_IDLE != 0 )
portTickType prvGetExpectedIdleTime ( void )
static portTickType prvGetExpectedIdleTime ( void )
{
portTickType xReturn ;
@ -1645,7 +1645,7 @@ implementations require configUSE_TICKLESS_IDLE to be set to a value other than
void vTaskStepTick ( portTickType xTicksToJump )
{
configASSERT ( xTicksToJump < = xNextTaskUnblockTime ) ;
configASSERT ( ( xTickCount + xTicksToJump ) < = xNextTaskUnblockTime ) ;
xTickCount + = xTicksToJump ;
}
@ -2165,13 +2165,6 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
# if ( configUSE_TICKLESS_IDLE != 0 )
{
portTickType xExpectedIdleTime ;
/* If the expected idle time is 1 then the idle time would end at
the end of the current time slice . The idle time must be at least
2 to ensure any pended ticks between this point and the tick being
stopped can be legitimately stepped over when the tick suppression
routines returns . */
const portTickType xMinimumExpectedIdleTime = ( portTickType ) 2 ;
/* It is not desirable to suspend then resume the scheduler on
each iteration of the idle task . Therefore , a preliminary
test of the expected idle time is performed without the
@ -2179,7 +2172,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
valid . */
xExpectedIdleTime = prvGetExpectedIdleTime ( ) ;
if ( xExpectedIdleTime > = xMinimumExpectedIdleTime )
if ( xExpectedIdleTime > = configEXPECTED_IDLE_TIME_BEFORE_SLEEP )
{
vTaskSuspendAll ( ) ;
{
@ -2189,7 +2182,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
configASSERT ( xNextTaskUnblockTime > = xTickCount ) ;
xExpectedIdleTime = prvGetExpectedIdleTime ( ) ;
if ( xExpectedIdleTime > = xMinimumExpectedIdleTime )
if ( xExpectedIdleTime > = configEXPECTED_IDLE_TIME_BEFORE_SLEEP )
{
portSUPPRESS_TICKS_AND_SLEEP ( xExpectedIdleTime ) ;
}