refactor(freertos): Uncrustify Task Snapshot header

This commit is contained in:
Darian Leung
2023-08-28 18:23:50 +08:00
parent 659ec67967
commit 6adcb64ad4

View File

@@ -10,9 +10,11 @@
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
/* *INDENT-OFF* */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* *INDENT-ON* */
/** /**
* @brief Task Snapshot structure * @brief Task Snapshot structure
@@ -25,7 +27,7 @@ typedef struct xTASK_SNAPSHOT
void * pxTCB; /*!< Address of the task control block. */ void * pxTCB; /*!< Address of the task control block. */
StackType_t * pxTopOfStack; /*!< Points to the location of the last item placed on the tasks stack. */ StackType_t * pxTopOfStack; /*!< Points to the location of the last item placed on the tasks stack. */
StackType_t * pxEndOfStack; /*!< Points to the end of the stack. pxTopOfStack < pxEndOfStack, stack grows hi2lo StackType_t * pxEndOfStack; /*!< Points to the end of the stack. pxTopOfStack < pxEndOfStack, stack grows hi2lo
pxTopOfStack > pxEndOfStack, stack grows lo2hi*/ * pxTopOfStack > pxEndOfStack, stack grows lo2hi*/
} TaskSnapshot_t; } TaskSnapshot_t;
/** /**
@@ -53,7 +55,8 @@ TaskHandle_t pxTaskGetNext( TaskHandle_t pxTask );
* @param[out] pxTaskSnapshot Snapshot of the task * @param[out] pxTaskSnapshot Snapshot of the task
* @return pdTRUE if operation was successful else pdFALSE * @return pdTRUE if operation was successful else pdFALSE
*/ */
BaseType_t vTaskGetSnapshot( TaskHandle_t pxTask, TaskSnapshot_t *pxTaskSnapshot ); BaseType_t vTaskGetSnapshot( TaskHandle_t pxTask,
TaskSnapshot_t * pxTaskSnapshot );
/** /**
* @brief Fill an array of TaskSnapshot_t structures for every task in the system * @brief Fill an array of TaskSnapshot_t structures for every task in the system
@@ -67,8 +70,12 @@ BaseType_t vTaskGetSnapshot( TaskHandle_t pxTask, TaskSnapshot_t *pxTaskSnapshot
* @param[out] pxTCBSize Size of the a task's TCB structure * @param[out] pxTCBSize Size of the a task's TCB structure
* @return UBaseType_t * @return UBaseType_t
*/ */
UBaseType_t uxTaskGetSnapshotAll( TaskSnapshot_t * const pxTaskSnapshotArray, const UBaseType_t uxArrayLength, UBaseType_t * const pxTCBSize ); UBaseType_t uxTaskGetSnapshotAll( TaskSnapshot_t * const pxTaskSnapshotArray,
const UBaseType_t uxArrayLength,
UBaseType_t * const pxTCBSize );
/* *INDENT-OFF* */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
/* *INDENT-ON* */