![]()  | 
  
    RTEMS
    5.1
    
   | 
 
Functions that manage interrupts and exceptions via the NVIC. More...
Functions | |
| __STATIC_INLINE void | NVIC_SetPriorityGrouping (uint32_t PriorityGroup) | 
| Set Priority Grouping.  More... | |
| __STATIC_INLINE uint32_t | NVIC_GetPriorityGrouping (void) | 
| Get Priority Grouping.  More... | |
| __STATIC_INLINE void | NVIC_EnableIRQ (IRQn_Type IRQn) | 
| Enable External Interrupt.  More... | |
| __STATIC_INLINE void | NVIC_DisableIRQ (IRQn_Type IRQn) | 
| Disable External Interrupt.  More... | |
| __STATIC_INLINE uint32_t | NVIC_GetPendingIRQ (IRQn_Type IRQn) | 
| Get Pending Interrupt.  More... | |
| __STATIC_INLINE void | NVIC_SetPendingIRQ (IRQn_Type IRQn) | 
| Set Pending Interrupt.  More... | |
| __STATIC_INLINE void | NVIC_ClearPendingIRQ (IRQn_Type IRQn) | 
| Clear Pending Interrupt.  More... | |
| __STATIC_INLINE uint32_t | NVIC_GetActive (IRQn_Type IRQn) | 
| Get Active Interrupt.  More... | |
| __STATIC_INLINE void | NVIC_SetPriority (IRQn_Type IRQn, uint32_t priority) | 
| Set Interrupt Priority.  More... | |
| __STATIC_INLINE uint32_t | NVIC_GetPriority (IRQn_Type IRQn) | 
| Get Interrupt Priority.  More... | |
| __STATIC_INLINE uint32_t | NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) | 
| Encode Priority.  More... | |
| __STATIC_INLINE void | NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t *const pPreemptPriority, uint32_t *const pSubPriority) | 
| Decode Priority.  More... | |
| __STATIC_INLINE void | NVIC_SystemReset (void) | 
| System Reset.  More... | |
Functions that manage interrupts and exceptions via the NVIC.
| __STATIC_INLINE void NVIC_ClearPendingIRQ | ( | IRQn_Type | IRQn | ) | 
Clear Pending Interrupt.
Clears the pending bit of an external interrupt.
| [in] | IRQn | External interrupt number. Value cannot be negative. | 
| __STATIC_INLINE void NVIC_DecodePriority | ( | uint32_t | Priority, | 
| uint32_t | PriorityGroup, | ||
| uint32_t *const | pPreemptPriority, | ||
| uint32_t *const | pSubPriority | ||
| ) | 
Decode Priority.
Decodes an interrupt priority value with a given priority group to 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.
| [in] | Priority | Priority value, which can be retrieved with the function NVIC_GetPriority(). | 
| [in] | PriorityGroup | Used priority group. | 
| [out] | pPreemptPriority | Preemptive priority value (starting from 0). | 
| [out] | pSubPriority | Subpriority value (starting from 0). | 
| __STATIC_INLINE void NVIC_DisableIRQ | ( | IRQn_Type | IRQn | ) | 
Disable External Interrupt.
Disables a device-specific interrupt in the NVIC interrupt controller.
| [in] | IRQn | External interrupt number. Value cannot be negative. | 
| __STATIC_INLINE void NVIC_EnableIRQ | ( | IRQn_Type | IRQn | ) | 
Enable External Interrupt.
Enables a device-specific interrupt in the NVIC interrupt controller.
| [in] | IRQn | External interrupt number. Value cannot be negative. | 
| __STATIC_INLINE uint32_t NVIC_EncodePriority | ( | uint32_t | PriorityGroup, | 
| uint32_t | PreemptPriority, | ||
| uint32_t | SubPriority | ||
| ) | 
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.
| [in] | PriorityGroup | Used priority group. | 
| [in] | PreemptPriority | Preemptive priority value (starting from 0). | 
| [in] | SubPriority | Subpriority value (starting from 0). | 
| __STATIC_INLINE uint32_t NVIC_GetActive | ( | IRQn_Type | IRQn | ) | 
Get Active Interrupt.
Reads the active register in NVIC and returns the active bit.
| [in] | IRQn | Interrupt number. | 
| __STATIC_INLINE uint32_t NVIC_GetPendingIRQ | ( | IRQn_Type | IRQn | ) | 
Get Pending Interrupt.
Reads the pending register in the NVIC and returns the pending bit for the specified interrupt.
| [in] | IRQn | Interrupt number. | 
| __STATIC_INLINE uint32_t NVIC_GetPriority | ( | IRQn_Type | IRQn | ) | 
Get Interrupt Priority.
Reads the priority of an interrupt. The interrupt number can be positive to specify an external (device specific) interrupt, or negative to specify an internal (core) interrupt.
| [in] | IRQn | Interrupt number. | 
| __STATIC_INLINE uint32_t NVIC_GetPriorityGrouping | ( | void | ) | 
Get Priority Grouping.
Reads the priority grouping field from the NVIC Interrupt Controller.
| __STATIC_INLINE void NVIC_SetPendingIRQ | ( | IRQn_Type | IRQn | ) | 
Set Pending Interrupt.
Sets the pending bit of an external interrupt.
| [in] | IRQn | Interrupt number. Value cannot be negative. | 
| __STATIC_INLINE void NVIC_SetPriority | ( | IRQn_Type | IRQn, | 
| uint32_t | priority | ||
| ) | 
Set Interrupt Priority.
Sets the priority of an interrupt.
| [in] | IRQn | Interrupt number. | 
| [in] | priority | Priority to set. | 
| __STATIC_INLINE void NVIC_SetPriorityGrouping | ( | uint32_t | PriorityGroup | ) | 
Set Priority Grouping.
Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
| [in] | PriorityGroup | Priority grouping field. | 
| __STATIC_INLINE void NVIC_SystemReset | ( | void | ) | 
System Reset.
Initiates a system reset request to reset the MCU.
 1.8.15