Skip to content

Commit f2fa50f

Browse files
committed
Apply idiotic crustify formatting patch to satisfy FreeRTOS CI formatting.
1 parent 4df5099 commit f2fa50f

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 );
@@ -2195,28 +2196,29 @@ char * pcTaskGetName( TaskHandle_t xTaskToQuery ) PRIVILEGED_FUNCTION;
21952196
UBaseType_t uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray,
21962197
const UBaseType_t uxArraySize,
21972198
configRUN_TIME_COUNTER_TYPE * const pulTotalRunTime ) PRIVILEGED_FUNCTION;
2198-
/**
2199-
* For each task, call pxCallbackFunction with the task's handle and state,
2200-
* and the provided context.
2201-
*
2202-
* NOTE: This function is intended for debugging use only as it suspends
2203-
* the scheduler for an extended period. The callback runs while the
2204-
* scheduler is suspended, so it must return quickly and must not perform
2205-
* blocking operations.
2206-
*
2207-
* @param pxCallbackFunction Callback to invoke once for each task (passing
2208-
* the task's handle, state, and the pvCallbackContext).
2209-
*
2210-
* @param pvCallbackContext Opaque caller-provided context passed through to
2211-
* each callback invocation.
2212-
*
2213-
* @param pulTotalRunTime If configGENERATE_RUN_TIME_STATS is set to 1 in
2214-
* FreeRTOSConfig.h then *pulTotalRunTime is set to the total run time since
2215-
* boot. pulTotalRunTime can be set to NULL to omit the total run time
2216-
* information.
2217-
*
2218-
* @return The number of TaskStatus_t snapshots provided to the callback.
2219-
*/
2199+
2200+
/**
2201+
* For each task, call pxCallbackFunction with the task's handle and state,
2202+
* and the provided context.
2203+
*
2204+
* NOTE: This function is intended for debugging use only as it suspends
2205+
* the scheduler for an extended period. The callback runs while the
2206+
* scheduler is suspended, so it must return quickly and must not perform
2207+
* blocking operations.
2208+
*
2209+
* @param pxCallbackFunction Callback to invoke once for each task (passing
2210+
* the task's handle, state, and the pvCallbackContext).
2211+
*
2212+
* @param pvCallbackContext Opaque caller-provided context passed through to
2213+
* each callback invocation.
2214+
*
2215+
* @param pulTotalRunTime If configGENERATE_RUN_TIME_STATS is set to 1 in
2216+
* FreeRTOSConfig.h then *pulTotalRunTime is set to the total run time since
2217+
* boot. pulTotalRunTime can be set to NULL to omit the total run time
2218+
* information.
2219+
*
2220+
* @return The number of TaskStatus_t snapshots provided to the callback.
2221+
*/
22202222
UBaseType_t uxTaskCallForEachTask( TaskStatusCallbackFunction_t pxCallbackFunction,
22212223
void * pvCallbackContext,
22222224
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)