From 7a418ceffe72294ab033cc9c26b48221878684b3 Mon Sep 17 00:00:00 2001 From: "Ching-Hsin,Lee" Date: Mon, 8 Jul 2024 14:36:19 +0800 Subject: [PATCH] Fix format and spelling --- tasks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks.c b/tasks.c index 4b7fea505..ba8b6c7b5 100644 --- a/tasks.c +++ b/tasks.c @@ -925,6 +925,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION; configASSERT( portGET_CRITICAL_NESTING_COUNT() > 0U ); #if ( configRUN_MULTIPLE_PRIORITIES == 0 ) + /* No task should yield for this one if it is a lower priority * than priority level of currently ready tasks. */ if( pxTCB->uxPriority >= uxTopReadyPriority ) @@ -2073,7 +2074,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, { uxCurrentNumberOfTasks = ( UBaseType_t ) ( uxCurrentNumberOfTasks + 1U ); - /* Invoking a functon in a condition here for performance consideration. */ + /* Invoking a function in a condition here for performance consideration. */ if( prvGetCurrentTaskTCBUnsafe() == NULL ) { /* There are no other tasks, or all the other tasks are in @@ -3410,10 +3411,12 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, configASSERT( xTaskToResume ); #if ( configNUMBER_OF_CORES == 1 ) + /* The parameter cannot be NULL as it is impossible to resume the * currently executing task. */ if( ( taskTASK_IS_RUNNING( pxTCB ) == pdFALSE ) && ( pxTCB != NULL ) ) #else + /* The parameter cannot be NULL as it is impossible to resume the * currently executing task. It is also impossible to resume a task * that is actively running on another core but it is not safe