mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Add base priority get APIs (#818)
* Add base priority get APIs * Add MPU changes --------- Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> Co-authored-by: kar-rahul-aws <118818625+kar-rahul-aws@users.noreply.github.com> Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
631ae9e6e4
commit
7ffc6a7465
6 changed files with 188 additions and 0 deletions
|
@ -1021,6 +1021,37 @@ UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
|
|||
*/
|
||||
UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
|
||||
|
||||
/**
|
||||
* task. h
|
||||
* @code{c}
|
||||
* UBaseType_t uxTaskBasePriorityGet( const TaskHandle_t xTask );
|
||||
* @endcode
|
||||
*
|
||||
* INCLUDE_uxTaskPriorityGet and configUSE_MUTEXES must be defined as 1 for this
|
||||
* function to be available. See the configuration section for more information.
|
||||
*
|
||||
* Obtain the base priority of any task.
|
||||
*
|
||||
* @param xTask Handle of the task to be queried. Passing a NULL
|
||||
* handle results in the base priority of the calling task being returned.
|
||||
*
|
||||
* @return The base priority of xTask.
|
||||
*
|
||||
* \defgroup uxTaskPriorityGet uxTaskBasePriorityGet
|
||||
* \ingroup TaskCtrl
|
||||
*/
|
||||
UBaseType_t uxTaskBasePriorityGet( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
|
||||
|
||||
/**
|
||||
* task. h
|
||||
* @code{c}
|
||||
* UBaseType_t uxTaskBasePriorityGetFromISR( const TaskHandle_t xTask );
|
||||
* @endcode
|
||||
*
|
||||
* A version of uxTaskBasePriorityGet() that can be used from an ISR.
|
||||
*/
|
||||
UBaseType_t uxTaskBasePriorityGetFromISR( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
|
||||
|
||||
/**
|
||||
* task. h
|
||||
* @code{c}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue