Specifications
Description
The alt_irq_register() function registers an ISR. If the function is successful, the requested interrupt
is enabled on return.
The input argument id is the interrupt to enable. isr is the function that is called when the interrupt is
active. context and id are the two input arguments to isr.
Calls to alt_irq_register() replace previously registered handlers for interrupt id.
If irq_handler is set to null, the interrupt is disabled.
1 This function is part of the legacy HAL interrupt API, which is deprecated. Altera recommends using
the enhanced HAL interrupt API.
For more information about using the enhanced HAL interrupt API, refer to “Nios II Interrupt Service
Routines” in the "Exception Handling" chapter of the Nios II Software Developer’s Handbook.
Return
The alt_irq_register() function returns zero if successful, or non-zero otherwise.
Related Information
• Nios II Interrupt Service Routines on page 8-6
• alt_ic_irq_enable() on page 14-34
• alt_ic_irq_enabled() on page 14-31
• alt_ic_isr_register() on page 14-32
• alt_irq_cpu_enable_interrupts () on page 14-37
• alt_irq_disable() on page 14-36
• alt_irq_disable_all() on page 14-38
• alt_irq_enable() on page 14-39
• alt_irq_enable_all() on page 14-39
• alt_irq_enabled() on page 14-40
• alt_irq_init() on page 14-41
• alt_irq_pending () on page 14-42
alt_llist_insert()
Prototype
void alt_llist_insert(alt_llist* list,
alt_llist* entry)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
No.
14-44
alt_llist_insert()
NII5V2
2015.05.14
Altera Corporation
HAL API Reference
Send Feedback