NVIC_EncodePriority() function
Encode Priority Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
Return value
Encoded priority. Value can be used in the function
NVIC_SetPriority
().
NVIC_EncodePriority():
![]()
NVIC_EncodePriority()