Functions that manage interrupts and exceptions via the NVIC. More...
Modules | |
SysTick Functions | |
Functions that configure the System. | |
__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 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 void | NVIC_SystemReset (void) |
System Reset. More... | |
#define | _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) |
#define | _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) |
#define | _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) |
Functions that manage interrupts and exceptions via the NVIC.
#define _BIT_SHIFT | ( | IRQn | ) | ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) |
Definition at line 489 of file core_cm0.h.
#define _IP_IDX | ( | IRQn | ) | ( ((uint32_t)(IRQn) >> 2) ) |
Definition at line 491 of file core_cm0.h.
#define _SHP_IDX | ( | IRQn | ) | ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) |
Definition at line 490 of file core_cm0.h.
__STATIC_INLINE void NVIC_ClearPendingIRQ | ( | IRQn_Type | IRQn | ) |
Clear Pending Interrupt.
The function clears the pending bit of an external interrupt.
[in] | IRQn | External interrupt number. Value cannot be negative. |
Definition at line 552 of file core_cm0.h.
__STATIC_INLINE void NVIC_DisableIRQ | ( | IRQn_Type | IRQn | ) |
Disable External Interrupt.
The function disables a device-specific interrupt in the NVIC interrupt controller.
[in] | IRQn | External interrupt number. Value cannot be negative. |
Definition at line 512 of file core_cm0.h.
__STATIC_INLINE void NVIC_EnableIRQ | ( | IRQn_Type | IRQn | ) |
Enable External Interrupt.
The function enables a device-specific interrupt in the NVIC interrupt controller.
[in] | IRQn | External interrupt number. Value cannot be negative. |
Definition at line 500 of file core_cm0.h.
__STATIC_INLINE uint32_t NVIC_GetPendingIRQ | ( | IRQn_Type | IRQn | ) |
Get Pending Interrupt.
The function reads the pending register in the NVIC and returns the pending bit for the specified interrupt.
[in] | IRQn | Interrupt number. |
Definition at line 528 of file core_cm0.h.
__STATIC_INLINE uint32_t NVIC_GetPriority | ( | IRQn_Type | IRQn | ) |
Get Interrupt Priority.
The function 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. |
Definition at line 589 of file core_cm0.h.
__STATIC_INLINE void NVIC_SetPendingIRQ | ( | IRQn_Type | IRQn | ) |
Set Pending Interrupt.
The function sets the pending bit of an external interrupt.
[in] | IRQn | Interrupt number. Value cannot be negative. |
Definition at line 540 of file core_cm0.h.
__STATIC_INLINE void NVIC_SetPriority | ( | IRQn_Type | IRQn, |
uint32_t | priority | ||
) |
Set Interrupt Priority.
The function sets the priority of an interrupt.
[in] | IRQn | Interrupt number. |
[in] | priority | Priority to set. |
Definition at line 567 of file core_cm0.h.
__STATIC_INLINE void NVIC_SystemReset | ( | void | ) |
System Reset.
The function initiates a system reset request to reset the MCU.
Definition at line 603 of file core_cm0.h.