libopencm3 Cortex Nested Vectored Interrupt Controller
More...
libopencm3 Cortex Nested Vectored Interrupt Controller
- Version
- 1.0.0
- Author
- © 2010 Piotr Esden-Tempski piotr.nosp@m.@esd.nosp@m.en.ne.nosp@m.t
- Date
- 18 August 2012
LGPL License Terms libopencm3 License
◆ bus_fault_handler()
void bus_fault_handler |
( |
void |
| ) |
|
◆ debug_monitor_handler()
void debug_monitor_handler |
( |
void |
| ) |
|
◆ hard_fault_handler()
void hard_fault_handler |
( |
void |
| ) |
|
◆ mem_manage_handler()
void mem_manage_handler |
( |
void |
| ) |
|
◆ nmi_handler()
void nmi_handler |
( |
void |
| ) |
|
◆ 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_generate_software_interrupt()
void nvic_generate_software_interrupt |
( |
uint16_t |
irqn | ) |
|
NVIC Software Trigger Interrupt.
Generate an interrupt from software. This has no effect for unprivileged access unless the privilege level has been elevated through the System Control Registers.
- Parameters
-
[in] | irqn | Unsigned int16. Interrupt number (0 ... 239) |
Definition at line 209 of file nvic.c.
References NVIC_STIR.
◆ nvic_get_active_irq()
uint8_t nvic_get_active_irq |
( |
uint8_t |
irqn | ) |
|
NVIC Return Active Interrupt.
Interrupt has occurred and is currently being serviced.
- Parameters
-
- Returns
- Boolean. Interrupt active.
Definition at line 194 of file nvic.c.
References NVIC_IABR.
◆ 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 16 priority levels only, given by the upper four bits of the priority byte, as required by ARM standards. The priority levels are interpreted according to the pre-emptive priority grouping set in the SCB Application Interrupt and Reset Control Register (SCB_AIRCR), as done in scb_set_priority_grouping,
- Parameters
-
Definition at line 152 of file nvic.c.
References NVIC_IPR, NVIC_IRQ_COUNT, and SCB_SHPR.
◆ pend_sv_handler()
void pend_sv_handler |
( |
void |
| ) |
|
◆ reset_handler()
void reset_handler |
( |
void |
| ) |
|
Definition at line 62 of file vector.c.
References __fini_array_end, __fini_array_start, __init_array_end, __init_array_start, __preinit_array_end, __preinit_array_start, _data, _data_loadaddr, _ebss, _edata, main(), pre_main(), SCB_CCR, and SCB_CCR_STKALIGN.
◆ sv_call_handler()
void sv_call_handler |
( |
void |
| ) |
|
◆ sys_tick_handler()
void sys_tick_handler |
( |
void |
| ) |
|
◆ usage_fault_handler()
void usage_fault_handler |
( |
void |
| ) |
|