Alt_vic_sw_interrupt_clear(), Alt_vic_sw_interrupt_status(), Alt_vic_irq_set_level() – Altera Embedded Peripherals IP User Manual
Page 284
![background image](https://www.manualsdir.com/files/763637/content/doc284.png)
alt_vic_sw_interrupt_clear()
Prototype:
int alt_vic_sw_interrupt_clear(alt_u32 ic_id, alt_u32 irq)
Thread-safe: No
Available
from ISR:
Yes; if interrupt preemption is enabled, disable global
interrupts before calling this routine.
Include:
altera_vic_irq.h, altera_vic_regs.h
Parameters: ic_id—the interrupt controller identification number as
defined in
system.h
irq—the interrupt value as defined in
system.h
Returns:
Returns zero if successful; otherwise non-zero for one or
more of the following reasons:
The value in ic_id is invalid
The value in irq is invalid
Description: Clears a single software interrupt
alt_vic_sw_interrupt_status()
Prototype:
alt_u32 alt_vic_sw_interrupt_status(alt_u32 ic_id, alt_u32
irq)
Thread-safe: No
Available
from ISR:
Yes; if interrupt preemption is enabled, disable global
interrupts before calling this routine.
Include:
altera_vic_irq.h, altera_vic_regs.h
Parameters: ic_id—the interrupt controller identification number as
defined in
system.h
irq—the interrupt value as defined in
system.h
Returns:
Returns non-zero if the corresponding software trigger
interrupt is active; otherwise zero for one or more of the
following reasons:
The corresponding software trigger interrupt is disabled
The value in ic_id is invalid
The value in irq is invalid
Description: Checks the software interrupt status for a single interrupt
alt_vic_irq_set_level()
Prototype:
int alt_vic_irq_set_level(alt_u32 ic_id, alt_u32 irq, alt_u32
level)
UG-01085
2014.24.07
alt_vic_sw_interrupt_clear()
28-15
Vectored Interrupt Controller Core
Altera Corporation