Functions that manage interrupts and exceptions via the NVIC.
More...
#define NVIC_ClearPendingIRQ |
#define NVIC_ClearPendingIRQ |
#define NVIC_GetEnableIRQ |
#define NVIC_GetEnableIRQ |
#define NVIC_GetPendingIRQ |
#define NVIC_GetPendingIRQ |
#define NVIC_M_IRQ_OFFSET |
#define NVIC_M_IRQ_OFFSET |
#define NVIC_SetPendingIRQ |
#define NVIC_SetPendingIRQ |
#define NVIC_USER_IRQ_OFFSET |
#define NVIC_USER_IRQ_OFFSET |
Clears the pending bit of a device specific interrupt in the NVIC pending register.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Note
- IRQn must not be negative.
Clears the pending bit of a device specific interrupt in the NVIC pending register.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Note
- IRQn must not be negative.
Disables a device specific interrupt in the NVIC interrupt controller.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Note
- IRQn must not be negative.
References NVIC.
Disables a device specific interrupt in the NVIC interrupt controller.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Note
- IRQn must not be negative.
References NVIC.
Enables a device specific interrupt in the NVIC interrupt controller.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Note
- IRQn must not be negative.
References NVIC.
Enables a device specific interrupt in the NVIC interrupt controller.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Note
- IRQn must not be negative.
References NVIC.
__STATIC_INLINE uint32_t __NVIC_ForgeItVect |
( |
uint32_t |
ItBaseAddr, |
|
|
uint32_t |
ItIndex, |
|
|
uint32_t |
ItHandler |
|
) |
| |
Reads the active register in the NVIC and returns the active bit for the device specific interrupt.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Returns
- 0 Interrupt status is not active.
-
1 Interrupt status is active.
- Note
- IRQn must not be negative.
References NVIC.
Reads the active register in the NVIC and returns the active bit for the device specific interrupt.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Returns
- 0 Interrupt status is not active.
-
1 Interrupt status is active.
- Note
- IRQn must not be negative.
References NVIC.
Returns a device specific interrupt enable status from the NVIC interrupt controller.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Returns
- 0 Interrupt is not enabled.
-
1 Interrupt is enabled.
- Note
- IRQn must not be negative.
References NVIC.
Returns a device specific interrupt enable status from the NVIC interrupt controller.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Returns
- 0 Interrupt is not enabled.
-
1 Interrupt is enabled.
- Note
- IRQn must not be negative.
References NVIC.
Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Returns
- 0 Interrupt status is not pending.
-
1 Interrupt status is pending.
- Note
- IRQn must not be negative.
Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Returns
- 0 Interrupt status is not pending.
-
1 Interrupt status is pending.
- Note
- IRQn must not be negative.
Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception.
- Parameters
-
[in] | IRQn | Interrupt number. |
- Returns
- Address of interrupt handler function
References CPRIV_PRIV_Msk.
Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception.
- Parameters
-
[in] | IRQn | Interrupt number. |
- Returns
- Address of interrupt handler function
References CPRIV_PRIV_Msk.
Sets the pending bit of a device specific interrupt in the NVIC pending register.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Note
- IRQn must not be negative.
Sets the pending bit of a device specific interrupt in the NVIC pending register.
- Parameters
-
[in] | IRQn | Device specific interrupt number. |
- Note
- IRQn must not be negative.
Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before.
- Parameters
-
[in] | IRQn | Interrupt number |
[in] | vector | Address of interrupt handler function |
References __NVIC_ForgeItVect(), and CPRIV_PRIV_Msk.
Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before.
- Parameters
-
[in] | IRQn | Interrupt number |
[in] | vector | Address of interrupt handler function |
References __NVIC_ForgeItVect(), and CPRIV_PRIV_Msk.
Initiates a system reset request to reset the MCU.