Skip to content

Commit 4f51ec1

Browse files
committed
Fix formatting
1 parent f0f8e9e commit 4f51ec1

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

timers.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -989,11 +989,11 @@
989989
traceTIMER_COMMAND_RECEIVED( pxTimer, xMessage.xMessageID, xMessage.u.xTimerParameters.xMessageValue );
990990

991991
/* In this case the xTimerListsWereSwitched parameter is not used, but
992-
* it must be present in the function call. prvSampleTimeNow() must be
993-
* called after the message is received from xTimerQueue so there is no
994-
* possibility of a higher priority task adding a message to the message
995-
* queue with a time that is ahead of the timer daemon task (because it
996-
* pre-empted the timer daemon task after the xTimeNow value was set). */
992+
* it must be present in the function call. prvSampleTimeNow() must be
993+
* called after the message is received from xTimerQueue so there is no
994+
* possibility of a higher priority task adding a message to the message
995+
* queue with a time that is ahead of the timer daemon task (because it
996+
* pre-empted the timer daemon task after the xTimeNow value was set). */
997997
xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
998998

999999
switch( xMessage.xMessageID )
@@ -1008,7 +1008,7 @@
10081008
if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
10091009
{
10101010
/* The timer expired before it was added to the active
1011-
* timer list. Process it now. */
1011+
* timer list. Process it now. */
10121012
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0U )
10131013
{
10141014
prvReloadTimer( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow );
@@ -1042,20 +1042,20 @@
10421042
configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
10431043

10441044
/* The new period does not really have a reference, and can
1045-
* be longer or shorter than the old one. The command time is
1046-
* therefore set to the current time, and as the period cannot
1047-
* be zero the next expiry time can only be in the future,
1048-
* meaning (unlike for the xTimerStart() case above) there is
1049-
* no fail case that needs to be handled here. */
1045+
* be longer or shorter than the old one. The command time is
1046+
* therefore set to the current time, and as the period cannot
1047+
* be zero the next expiry time can only be in the future,
1048+
* meaning (unlike for the xTimerStart() case above) there is
1049+
* no fail case that needs to be handled here. */
10501050
( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
10511051
break;
10521052

10531053
case tmrCOMMAND_DELETE:
10541054
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
10551055
{
10561056
/* The timer has already been removed from the active list,
1057-
* just free up the memory if the memory was dynamically
1058-
* allocated. */
1057+
* just free up the memory if the memory was dynamically
1058+
* allocated. */
10591059
if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
10601060
{
10611061
vPortFree( pxTimer );
@@ -1068,9 +1068,9 @@
10681068
#else /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */
10691069
{
10701070
/* If dynamic allocation is not enabled, the memory
1071-
* could not have been dynamically allocated. So there is
1072-
* no need to free the memory - just mark the timer as
1073-
* "not active". */
1071+
* could not have been dynamically allocated. So there is
1072+
* no need to free the memory - just mark the timer as
1073+
* "not active". */
10741074
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE );
10751075
}
10761076
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */

0 commit comments

Comments
 (0)