Run uncrustify with github workflows (#369)
* uncrustify with github workflows * Fix find expression * Add uncrustify configuration file * Uncrustify some files * uncrustify some more files * uncrustify more files * Fix whitespace at end of lines Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
This commit is contained in:
11
timers.c
11
timers.c
@ -57,8 +57,8 @@
|
||||
#if ( configUSE_TIMERS == 1 )
|
||||
|
||||
/* Misc definitions. */
|
||||
#define tmrNO_DELAY ( ( TickType_t ) 0U )
|
||||
#define tmrMAX_TIME_BEFORE_OVERFLOW ( ( TickType_t ) -1 )
|
||||
#define tmrNO_DELAY ( ( TickType_t ) 0U )
|
||||
#define tmrMAX_TIME_BEFORE_OVERFLOW ( ( TickType_t ) -1 )
|
||||
|
||||
/* The name assigned to the timer service task. This can be overridden by
|
||||
* defining trmTIMER_SERVICE_TASK_NAME in FreeRTOSConfig.h. */
|
||||
@ -363,11 +363,11 @@
|
||||
configASSERT( ( xTimerPeriodInTicks > 0 ) );
|
||||
|
||||
/* Ensure the infrastructure used by the timer service task has been
|
||||
* created/initialised. */
|
||||
* created/initialised. */
|
||||
prvCheckForValidListAndQueue();
|
||||
|
||||
/* Initialise the timer structure members using the function
|
||||
* parameters. */
|
||||
* parameters. */
|
||||
pxNewTimer->pcTimerName = pcTimerName;
|
||||
pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
|
||||
pxNewTimer->pvTimerID = pvTimerID;
|
||||
@ -521,7 +521,7 @@
|
||||
/* Insert the timer into the appropriate list for the next expiry time.
|
||||
* If the next expiry time has already passed, advance the expiry time,
|
||||
* call the callback function, and try again. */
|
||||
while ( prvInsertTimerInActiveList( pxTimer, ( xExpiredTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xExpiredTime ) != pdFALSE )
|
||||
while( prvInsertTimerInActiveList( pxTimer, ( xExpiredTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xExpiredTime ) != pdFALSE )
|
||||
{
|
||||
/* Advance the expiry time. */
|
||||
xExpiredTime += pxTimer->xTimerPeriodInTicks;
|
||||
@ -540,6 +540,7 @@
|
||||
|
||||
/* Remove the timer from the list of active timers. A check has already
|
||||
* been performed to ensure the list is not empty. */
|
||||
|
||||
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
|
||||
|
||||
/* If the timer is an auto-reload timer then calculate the next
|
||||
|
Reference in New Issue
Block a user