prvTaskPriorityRaise() function
INCLUDE_vTaskPrioritySet must be defined as 1 for this function to be available. See the configuration section for more information. Saves the current priority and current base priority of a task, then raises the task's current and base priority to uxNewPriority if uxNewPriority is of a higher priority. Once a task's priority has been raised with this function, the priority can be restored by calling prvTaskPriorityRestore() - Note that this function differs from vTaskPrioritySet() as the task's current priority will be modified even if the task has already inherited a priority. - This function is intended for special circumstance where a task must be forced immediately to a higher priority. For configUSE_MUTEXES == 0: A context switch will occur before the function returns if the priority being set is higher than the priority of the currently executing task.
Arguments
pxSavedPriority
returns base and current priorities
uxNewPriority
The priority to which the task's priority will be set.
Notes
This functions is private and should only be called internally within various IDF components. Users should never call this function from their application. vTaskPrioritySet() should not be called while a task's priority is already raised via this function