![]() |
NHS31xx SW API
|
Functions | |
static void | NVIC_EnableIRQ (IRQn_Type IRQn) |
static void | NVIC_DisableIRQ (IRQn_Type IRQn) |
static uint32_t | NVIC_GetPendingIRQ (IRQn_Type IRQn) |
static void | NVIC_SetPendingIRQ (IRQn_Type IRQn) |
static void | NVIC_ClearPendingIRQ (IRQn_Type IRQn) |
static void | NVIC_SetPriority (IRQn_Type IRQn, uint32_t priority) |
static uint32_t | NVIC_GetPriority (IRQn_Type IRQn) |
static void | NVIC_SystemReset (void) |
|
inlinestatic |
Enable External Interrupt.
The function enables a device-specific interrupt in the NVIC interrupt controller.
[in] | IRQn | External interrupt number. Value cannot be negative. |
< static inline keyword combination for GNU Compiler
< System Control Space Base Address
< NVIC Base Address
< NVIC configuration struct
|
inlinestatic |
Disable External Interrupt.
The function disables a device-specific interrupt in the NVIC interrupt controller.
[in] | IRQn | External interrupt number. Value cannot be negative. |
< static inline keyword combination for GNU Compiler
< System Control Space Base Address
< NVIC Base Address
< NVIC configuration struct
|
inlinestatic |
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. |
< static inline keyword combination for GNU Compiler
< System Control Space Base Address
< NVIC Base Address
< NVIC configuration struct
|
inlinestatic |
Set Pending Interrupt.
The function sets the pending bit of an external interrupt.
[in] | IRQn | Interrupt number. Value cannot be negative. |
< static inline keyword combination for GNU Compiler
< System Control Space Base Address
< NVIC Base Address
< NVIC configuration struct
|
inlinestatic |
Clear Pending Interrupt.
The function clears the pending bit of an external interrupt.
[in] | IRQn | External interrupt number. Value cannot be negative. |
< static inline keyword combination for GNU Compiler
< System Control Space Base Address
< NVIC Base Address
< NVIC configuration struct
|
inlinestatic |
Set Interrupt Priority.
The function sets the priority of an interrupt.
[in] | IRQn | Interrupt number. |
[in] | priority | Priority to set. |
< static inline keyword combination for GNU Compiler
< System Control Space Base Address
< System Control Block Base Address
< SCB configuration struct
< System Control Space Base Address
< System Control Block Base Address
< SCB configuration struct
< System Control Space Base Address
< NVIC Base Address
< NVIC configuration struct
< System Control Space Base Address
< NVIC Base Address
< NVIC configuration struct
|
inlinestatic |
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. |
< static inline keyword combination for GNU Compiler
< System Control Space Base Address
< System Control Block Base Address
< SCB configuration struct
< System Control Space Base Address
< NVIC Base Address
< NVIC configuration struct
|
inlinestatic |
System Reset.
The function initiates a system reset request to reset the MCU.
< static inline keyword combination for GNU Compiler
< System Control Space Base Address
< System Control Block Base Address
< SCB configuration struct
< SCB AIRCR: VECTKEY Position
< SCB AIRCR: SYSRESETREQ Position
< SCB AIRCR: SYSRESETREQ Mask