libopencm3 Cortex Nested Vectored Interrupt Controller
More...
libopencm3 Cortex Nested Vectored Interrupt Controller
- Version
- 1.0.0
- Author
- © 2010 Thomas Otto tommi.nosp@m.@via.nosp@m.dmin..nosp@m.org
-
© 2012 Fergus Noble fergu.nosp@m.snob.nosp@m.le@gm.nosp@m.ail..nosp@m.com
- Date
- 18 August 2012
Cortex processors provide 14 cortex-defined interrupts (NMI, usage faults, systicks etc.) and varying numbers of implementation defined interrupts (typically peripherial interrupts and DMA).
- See also
- Cortex-M3 Devices Generic User Guide
-
STM32F10xxx Cortex-M3 programming manual
LGPL License Terms libopencm3 License
◆ nvic_clear_pending_irq()
void nvic_clear_pending_irq |
( |
uint8_t |
irqn | ) |
|
NVIC Clear Pending Interrupt.
Force remove a user interrupt from a pending state. This has no effect if the interrupt is actively being serviced.
- Parameters
-
Definition at line 112 of file nvic.c.
References NVIC_ICPR.
◆ nvic_disable_irq()
void nvic_disable_irq |
( |
uint8_t |
irqn | ) |
|
NVIC Disable Interrupt.
Disables a user interrupt.
- Parameters
-
Definition at line 70 of file nvic.c.
References NVIC_ICER.
◆ nvic_enable_irq()
void nvic_enable_irq |
( |
uint8_t |
irqn | ) |
|
NVIC Enable Interrupt.
Enables a user interrupt.
- Parameters
-
Definition at line 57 of file nvic.c.
References NVIC_ISER.
◆ nvic_get_irq_enabled()
uint8_t nvic_get_irq_enabled |
( |
uint8_t |
irqn | ) |
|
NVIC Return Enabled Interrupt.
- Parameters
-
- Returns
- Boolean. Interrupt enabled.
Definition at line 126 of file nvic.c.
References NVIC_ISER.
◆ nvic_get_pending_irq()
uint8_t nvic_get_pending_irq |
( |
uint8_t |
irqn | ) |
|
NVIC Return Pending Interrupt.
True if the interrupt has occurred and is waiting for service.
- Parameters
-
- Returns
- Boolean. Interrupt pending.
Definition at line 84 of file nvic.c.
References NVIC_ISPR.
◆ nvic_set_pending_irq()
void nvic_set_pending_irq |
( |
uint8_t |
irqn | ) |
|
NVIC Set Pending Interrupt.
Force a user interrupt to a pending state. This has no effect if the interrupt is already pending.
- Parameters
-
Definition at line 98 of file nvic.c.
References NVIC_ISPR.
◆ nvic_set_priority()
void nvic_set_priority |
( |
uint8_t |
irqn, |
|
|
uint8_t |
priority |
|
) |
| |
NVIC Set Interrupt Priority.
There are 4 priority levels only, given by the upper two bits of the priority byte, as required by ARM standards. No grouping available.
- Parameters
-
Definition at line 152 of file nvic.c.
References NVIC_IPR32, NVIC_IRQ_COUNT, and SCB_SHPR32.