Skip to content

Commit 7472f1d

Browse files
DRNadlerrawalexe
authored andcommitted
Apply idiotic crustify formatting patch to satisfy FreeRTOS CI formatting.
1 parent 6dacdfb commit 7472f1d

2 files changed

Lines changed: 32 additions & 29 deletions

File tree

include/task.h

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@ typedef struct xTASK_STATUS
185185
} TaskStatus_t;
186186

187187
#if ( configUSE_TRACE_FACILITY == 1 )
188-
/* Callback type used by uxTaskCallForEachTask(). The callback receives one
189-
* task handle and state at a time, plus an opaque caller-supplied context
190-
* pointer. The callback may call vTaskGetInfo() if it needs a TaskStatus_t. */
188+
189+
/* Callback type used by uxTaskCallForEachTask(). The callback receives one
190+
* task handle and state at a time, plus an opaque caller-supplied context
191+
* pointer. The callback may call vTaskGetInfo() if it needs a TaskStatus_t. */
191192
typedef void (* TaskStatusCallbackFunction_t)( TaskHandle_t xTask,
192193
eTaskState eState,
193194
void * pvCallbackContext );
@@ -2219,28 +2220,29 @@ char * pcTaskGetName( TaskHandle_t xTaskToQuery ) PRIVILEGED_FUNCTION;
22192220
UBaseType_t uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray,
22202221
const UBaseType_t uxArraySize,
22212222
configRUN_TIME_COUNTER_TYPE * const pulTotalRunTime ) PRIVILEGED_FUNCTION;
2222-
/**
2223-
* For each task, call pxCallbackFunction with the task's handle and state,
2224-
* and the provided context.
2225-
*
2226-
* NOTE: This function is intended for debugging use only as it suspends
2227-
* the scheduler for an extended period. The callback runs while the
2228-
* scheduler is suspended, so it must return quickly and must not perform
2229-
* blocking operations.
2230-
*
2231-
* @param pxCallbackFunction Callback to invoke once for each task (passing
2232-
* the task's handle, state, and the pvCallbackContext).
2233-
*
2234-
* @param pvCallbackContext Opaque caller-provided context passed through to
2235-
* each callback invocation.
2236-
*
2237-
* @param pulTotalRunTime If configGENERATE_RUN_TIME_STATS is set to 1 in
2238-
* FreeRTOSConfig.h then *pulTotalRunTime is set to the total run time since
2239-
* boot. pulTotalRunTime can be set to NULL to omit the total run time
2240-
* information.
2241-
*
2242-
* @return The number of TaskStatus_t snapshots provided to the callback.
2243-
*/
2223+
2224+
/**
2225+
* For each task, call pxCallbackFunction with the task's handle and state,
2226+
* and the provided context.
2227+
*
2228+
* NOTE: This function is intended for debugging use only as it suspends
2229+
* the scheduler for an extended period. The callback runs while the
2230+
* scheduler is suspended, so it must return quickly and must not perform
2231+
* blocking operations.
2232+
*
2233+
* @param pxCallbackFunction Callback to invoke once for each task (passing
2234+
* the task's handle, state, and the pvCallbackContext).
2235+
*
2236+
* @param pvCallbackContext Opaque caller-provided context passed through to
2237+
* each callback invocation.
2238+
*
2239+
* @param pulTotalRunTime If configGENERATE_RUN_TIME_STATS is set to 1 in
2240+
* FreeRTOSConfig.h then *pulTotalRunTime is set to the total run time since
2241+
* boot. pulTotalRunTime can be set to NULL to omit the total run time
2242+
* information.
2243+
*
2244+
* @return The number of TaskStatus_t snapshots provided to the callback.
2245+
*/
22442246
UBaseType_t uxTaskCallForEachTask( TaskStatusCallbackFunction_t pxCallbackFunction,
22452247
void * pvCallbackContext,
22462248
configRUN_TIME_COUNTER_TYPE * const pulTotalRunTime ) PRIVILEGED_FUNCTION;

tasks.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3679,7 +3679,7 @@ STATIC BaseType_t prvCreateIdleTasks( void )
36793679
{
36803680
xIdleTaskHandles[ xCoreID ]->uxCoreAffinityMask = ( ( UBaseType_t ) 1U << ( UBaseType_t ) xCoreID );
36813681
}
3682-
#endif /* #if ( ( configIDLE_AFFINITY == 1 ) && ( configUSE_CORE_AFFINITY == 1 ) ) */
3682+
#endif /* #if ( ( configIDLE_AFFINITY == 1 ) && ( configUSE_CORE_AFFINITY == 1 ) ) */
36833683
}
36843684
#endif /* if ( configNUMBER_OF_CORES == 1 ) */
36853685
}
@@ -4446,19 +4446,20 @@ char * pcTaskGetName( TaskHandle_t xTaskToQuery )
44464446
TaskStatusCallbackFunction_t pxCallbackFunction,
44474447
void * pvCallbackContext );
44484448

4449-
/* for uxTaskGetSystemState callback: write position into TaskStatusArray */
4449+
/* for uxTaskGetSystemState callback: write position into TaskStatusArray */
44504450
typedef struct xTASK_STATUS_ARRAY_WRITER_CONTEXT
44514451
{
44524452
TaskStatus_t * pxTaskStatusArray;
44534453
UBaseType_t uxIndex;
44544454
} TaskStatusArrayWriterContext_t;
44554455

4456-
/* callback for uxTaskGetSystemState: write the task status for one task into TaskStatusArray */
4456+
/* callback for uxTaskGetSystemState: write the task status for one task into TaskStatusArray */
44574457
STATIC void prvTaskStatusArrayWriter( TaskHandle_t xTask,
44584458
eTaskState eState,
44594459
void * pvCallbackContext )
44604460
{
44614461
TaskStatusArrayWriterContext_t * pxContext = ( TaskStatusArrayWriterContext_t * ) pvCallbackContext;
4462+
44624463
vTaskGetInfo( xTask, &( pxContext->pxTaskStatusArray[ pxContext->uxIndex++ ] ), pdTRUE, eState );
44634464
}
44644465

@@ -4478,7 +4479,7 @@ char * pcTaskGetName( TaskHandle_t xTaskToQuery )
44784479
}
44794480
}
44804481

4481-
/* For each task, call the provided callback function (passing the provided context). */
4482+
/* For each task, call the provided callback function (passing the provided context). */
44824483
STATIC UBaseType_t prvCallForEachTask( TaskStatusCallbackFunction_t pxCallbackFunction,
44834484
void * pvCallbackContext )
44844485
{

0 commit comments

Comments
 (0)