Skip to content

Commit 27884b5

Browse files
committed
Code review suggestions
Signed-off-by: Gaurav Aggarwal <[email protected]>
1 parent e180c10 commit 27884b5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

include/task.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,9 +1033,10 @@ UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask ) PRIVILEGED_FUNC
10331033
* Obtain the base priority of any task.
10341034
*
10351035
* @param xTask Handle of the task to be queried. Passing a NULL
1036-
* handle results in the priority of the calling task being returned.
1036+
* handle results in the base priority of the calling task being returned.
10371037
*
10381038
* @return The base priority of xTask.
1039+
*
10391040
* \defgroup uxTaskPriorityGet uxTaskBasePriorityGet
10401041
* \ingroup TaskCtrl
10411042
*/

tasks.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2474,8 +2474,8 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
24742474

24752475
taskENTER_CRITICAL();
24762476
{
2477-
/* If null is passed in here then it is the priority of the task
2478-
* that called uxTaskPriorityGet() that is being queried. */
2477+
/* If null is passed in here then it is the base priority of the task
2478+
* that called uxTaskBasePriorityGet() that is being queried. */
24792479
pxTCB = prvGetTCBFromHandle( xTask );
24802480
uxReturn = pxTCB->uxBasePriority;
24812481
}
@@ -2519,7 +2519,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
25192519

25202520
uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
25212521
{
2522-
/* If null is passed in here then it is the priority of the calling
2522+
/* If null is passed in here then it is the base priority of the calling
25232523
* task that is being queried. */
25242524
pxTCB = prvGetTCBFromHandle( xTask );
25252525
uxReturn = pxTCB->uxBasePriority;

0 commit comments

Comments
 (0)