Skip to content

Commit

Permalink
Update function prototype and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot committed Sep 9, 2023
1 parent b89966c commit d80e6f6
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,36 +671,51 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
*/
static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;

/*
* Create a task with static buffer. Returning a handle to the task if it is created
* successfully. Otherwise, NULL is returned.
*/
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )

static TCB_t * prvCreateStaticTask( TaskFunction_t pxTaskCode,
const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
const uint32_t ulStackDepth,
void * const pvParameters,
UBaseType_t uxPriority,
StackType_t * const puxStackBuffer,
StaticTask_t * const pxTaskBuffer,
TaskHandle_t * const pxCreatedTask );
#endif
TaskHandle_t * const pxCreatedTask ) PRIVILEGED_FUNCTION;
#endif /* #if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */

/*
* Create a restricted task with static buffer. Returning a handle to the task if
* it is created successfully. Otherwise, NULL is returned.
*/
#if ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
static TCB_t * prvCreateRestrictedStaticTask( const TaskParameters_t * const pxTaskDefinition,
TaskHandle_t * const pxCreatedTask );
#endif
TaskHandle_t * const pxCreatedTask ) PRIVILEGED_FUNCTION;
#endif /* #if ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) */

/*
* Create a restricted task with a TCB_t. Returning a handle to the task if it is
* created successfully. Otherwise, NULL is returned.
*/
#if ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
static TCB_t * prvCreateRestrictedTask( const TaskParameters_t * const pxTaskDefinition,
TaskHandle_t * const pxCreatedTask );
#endif
TaskHandle_t * const pxCreatedTask ) PRIVILEGED_FUNCTION;
#endif /* #if ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */

/*
* Create a task with allocated buffer. Returning a handle to the task if it is created
* successfully. Otherwise, NULL is returned.
*/
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
static TCB_t * prvCreateTask( TaskFunction_t pxTaskCode,
const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
const configSTACK_DEPTH_TYPE usStackDepth,
void * const pvParameters,
UBaseType_t uxPriority,
TaskHandle_t * const pxCreatedTask );
#endif
TaskHandle_t * const pxCreatedTask ) PRIVILEGED_FUNCTION;
#endif /* #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */

/*
* freertos_tasks_c_additions_init() should only be called if the user definable
Expand Down

0 comments on commit d80e6f6

Please sign in to comment.