mbed SDK library sources
Fork of mbed-src by
NVIC Functions
[Functions and Instructions Reference]
Functions that manage interrupts and exceptions via the NVIC. More...
Functions | |
__STATIC_INLINE void | NVIC_EnableIRQ (IRQn_Type IRQn) |
Enable External Interrupt. | |
__STATIC_INLINE void | NVIC_DisableIRQ (IRQn_Type IRQn) |
Disable External Interrupt. | |
__STATIC_INLINE uint32_t | NVIC_GetPendingIRQ (IRQn_Type IRQn) |
Get Pending Interrupt. | |
__STATIC_INLINE void | NVIC_SetPendingIRQ (IRQn_Type IRQn) |
Set Pending Interrupt. | |
__STATIC_INLINE void | NVIC_ClearPendingIRQ (IRQn_Type IRQn) |
Clear Pending Interrupt. | |
__STATIC_INLINE void | NVIC_SetPriority (IRQn_Type IRQn, uint32_t priority) |
Set Interrupt Priority. | |
__STATIC_INLINE uint32_t | NVIC_GetPriority (IRQn_Type IRQn) |
Get Interrupt Priority. | |
__STATIC_INLINE void | NVIC_SystemReset (void) |
System Reset. |
Detailed Description
Functions that manage interrupts and exceptions via the NVIC.
Function Documentation
__STATIC_INLINE void NVIC_ClearPendingIRQ | ( | IRQn_Type | IRQn ) |
Clear Pending Interrupt.
The function clears the pending bit of an external interrupt.
- Parameters:
-
[in] IRQn External interrupt number. Value cannot be negative.
Definition at line 567 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.
- Parameters:
-
[in] IRQn External interrupt number. Value cannot be negative.
Definition at line 527 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.
- Parameters:
-
[in] IRQn External interrupt number. Value cannot be negative.
Definition at line 515 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.
- Parameters:
-
[in] IRQn Interrupt number.
- Returns:
- 0 Interrupt status is not pending.
- 1 Interrupt status is pending.
Definition at line 543 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.
- Parameters:
-
[in] IRQn Interrupt number.
- Returns:
- Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller.
Definition at line 604 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.
- Parameters:
-
[in] IRQn Interrupt number. Value cannot be negative.
Definition at line 555 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.
- Note:
- The priority cannot be set for every core interrupt.
- Parameters:
-
[in] IRQn Interrupt number. [in] priority Priority to set.
Definition at line 582 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 618 of file core_cm0.h.
Generated on Tue Jul 12 2022 18:13:44 by 1.7.2