Lines Matching refs:priority

1454   The function sets the priority grouping field using the required unlock sequence.
1457 In case of a conflict between priority grouping and available
1458 priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
1478 The function reads the priority grouping field from the NVIC Interrupt Controller.
1484 return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */
1570 The function sets the priority of an interrupt.
1572 \note The priority cannot be set for every core interrupt.
1575 \param [in] priority Priority to set.
1577 __STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
1580 SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */
1582 NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */
1588 The function reads the priority of an interrupt. The interrupt
1595 priority bits of the microcontroller.
1601 return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */
1603 return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */
1609 The function encodes the priority for an interrupt with the given priority group,
1610 preemptive priority value, and subpriority value.
1611 In case of a conflict between priority grouping and available
1612 priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
1614 \param [in] PriorityGroup Used priority group.
1615 \param [in] PreemptPriority Preemptive priority value (starting from 0).
1617 \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
1637 The function decodes an interrupt priority value with a given priority group to
1638 preemptive priority value and subpriority value.
1639 In case of a conflict between priority grouping and available
1640 priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set.
1643 \param [in] PriorityGroup Used priority group.
1644 \param [out] pPreemptPriority Preemptive priority value (starting from 0).
1671 SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */