Lines Matching full:if

42 #if ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 0 )
52 /* This entire source file will be skipped if the application is not configured
53 * to include software timer functionality. This #if is closed at the very bottom
54 * of this file. If you want to include software timer functionality then ensure
56 #if ( configUSE_TIMERS == 1 )
68 #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) )
75 #endif /* #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) ) */
90 #if ( configUSE_TRACE_FACILITY == 1 )
93 … /**< Holds bits to say if the timer was statically allocated or not, an…
129 /* Don't include xCallbackParameters if it is not going to be used as
131 #if ( INCLUDE_xTimerPendFunctionCall == 1 )
155 * Initialise the infrastructure used by the timer service task if it has not
175 * depending on if the expire time causes a timer counter overflow.
183 * Reload the specified auto-reload timer. If the reloading is backlogged,
192 * An active timer has reached its expire time. Reload the timer if it is an
206 * if a tick count overflow occurred since prvSampleTimeNow() was last called.
211 * If the timer list contains any active timers then return the expire time of
212 * the timer that will expire first and set *pxListWasEmpty to false. If the
219 * If a timer has expired, process it. Otherwise, block the timer service task
243 /* This function is called when the scheduler is started if in xTimerCreateTimerTask()
245 * timer service task has been created/initialised. If timers have already in xTimerCreateTimerTask()
249 if( xTimerQueue != NULL ) in xTimerCreateTimerTask()
251 #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) ) in xTimerCreateTimerTask()
253 #if ( configSUPPORT_STATIC_ALLOCATION == 1 ) in xTimerCreateTimerTask()
269 if( xTimerTaskHandle != NULL ) in xTimerCreateTimerTask()
274 #else /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */ in xTimerCreateTimerTask()
286 #else /* #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) ) */ in xTimerCreateTimerTask()
288 #if ( configSUPPORT_STATIC_ALLOCATION == 1 ) in xTimerCreateTimerTask()
303 if( xTimerTaskHandle != NULL ) in xTimerCreateTimerTask()
308 #else /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */ in xTimerCreateTimerTask()
319 #endif /* #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) ) */ in xTimerCreateTimerTask()
334 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
351 if( pxNewTimer != NULL ) in xTimerCreate()
368 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
381 #if ( configASSERT_DEFINED == 1 ) in xTimerCreateStatic()
399 if( pxNewTimer != NULL ) in xTimerCreateStatic()
439 if( xAutoReload != pdFALSE ) in prvInitialiseNewTimer()
465 if( xTimerQueue != NULL ) in xTimerGenericCommandFromTask()
474 if( xCommandID < tmrFIRST_FROM_ISR_COMMAND ) in xTimerGenericCommandFromTask()
476 if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING ) in xTimerGenericCommandFromTask()
516 if( xTimerQueue != NULL ) in xTimerGenericCommandFromISR()
525 if( xCommandID >= tmrFIRST_FROM_ISR_COMMAND ) in xTimerGenericCommandFromISR()
547 /* If xTimerGetTimerDaemonTaskHandle() is called before the scheduler has been in xTimerGetTimerDaemonTaskHandle()
581 if( xAutoReload != pdFALSE ) in vTimerSetReloadMode()
606 if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) == 0U ) in xTimerGetReloadMode()
654 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
665 if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) != 0U ) in xTimerGetStaticBuffer()
704 * If the next expiry time has already passed, advance the expiry time, in prvReloadTimer()
731 /* If the timer is an auto-reload timer then calculate the next in prvProcessExpiredTimer()
733 if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0U ) in prvProcessExpiredTimer()
756 #if ( configUSE_DAEMON_TASK_STARTUP_HOOK == 1 ) in portTASK_FUNCTION()
759 * this task at the point the task starts executing. This is useful if the in portTASK_FUNCTION()
768 /* Query the timers list to see if it contains any timers, and if so, in portTASK_FUNCTION()
772 /* If a timer has expired, process it. Otherwise, block this task in portTASK_FUNCTION()
791 * has expired or not. If obtaining the time causes the lists to switch in prvProcessTimerOrBlockTask()
797 if( xTimerListsWereSwitched == pdFALSE ) in prvProcessTimerOrBlockTask()
800 if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) ) in prvProcessTimerOrBlockTask()
813 if( xListWasEmpty != pdFALSE ) in prvProcessTimerOrBlockTask()
822 if( xTaskResumeAll() == pdFALSE ) in prvProcessTimerOrBlockTask()
825 * block time to expire. If a command arrived between the in prvProcessTimerOrBlockTask()
850 * the timer with the nearest expiry time will expire. If there are no in prvGetNextExpireTime()
857 if( *pxListWasEmpty == pdFALSE ) in prvGetNextExpireTime()
878 if( xTimeNow < xLastTime ) in prvSampleTimeNow()
904 if( xNextExpiryTime <= xTimeNow ) in prvInsertTimerInActiveList()
908 if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) in prvInsertTimerInActiveList()
921 if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) ) in prvInsertTimerInActiveList()
923 /* If, since the command was issued, the tick count has overflowed in prvInsertTimerInActiveList()
947 #if ( INCLUDE_xTimerPendFunctionCall == 1 ) in prvProcessReceivedCommands()
951 if( xMessage.xMessageID < ( BaseType_t ) 0 ) in prvProcessReceivedCommands()
971 if( xMessage.xMessageID >= ( BaseType_t ) 0 ) in prvProcessReceivedCommands()
977 if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) in prvProcessReceivedCommands()
1006if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTim… in prvProcessReceivedCommands()
1010 if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0U ) in prvProcessReceivedCommands()
1052 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) in prvProcessReceivedCommands()
1055 * just free up the memory if the memory was dynamically in prvProcessReceivedCommands()
1057if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 ) in prvProcessReceivedCommands()
1066 #else /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */ in prvProcessReceivedCommands()
1068 /* If dynamic allocation is not enabled, the memory in prvProcessReceivedCommands()
1092 * If there are any timers still referenced from the current timer list in prvSwitchTimerLists()
1118 if( xTimerQueue == NULL ) in prvCheckForValidListAndQueue()
1125 #if ( configSUPPORT_STATIC_ALLOCATION == 1 ) in prvCheckForValidListAndQueue()
1138 #endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */ in prvCheckForValidListAndQueue()
1140 #if ( configQUEUE_REGISTRY_SIZE > 0 ) in prvCheckForValidListAndQueue()
1142 if( xTimerQueue != NULL ) in prvCheckForValidListAndQueue()
1174 if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0U ) in xTimerIsTimerActive()
1231 #if ( INCLUDE_xTimerPendFunctionCall == 1 )
1261 #if ( INCLUDE_xTimerPendFunctionCall == 1 )
1296 #if ( configUSE_TRACE_FACILITY == 1 )
1310 #if ( configUSE_TRACE_FACILITY == 1 )
1325 /* This entire source file will be skipped if the application is not configured
1326 * to include software timer functionality. If you want to include software timer