Altera HWLIB  16.0
The Altera HW Manager API Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Interrupt Service Routine [Secure]

Description

This group of APIs performs Interrupt Service Routine (ISR) related functions.

Functions

ALT_STATUS_CODE alt_int_isr_register (ALT_INT_INTERRUPT_t int_id, alt_int_callback_t callback, void *context)
 
ALT_STATUS_CODE alt_int_isr_unregister (ALT_INT_INTERRUPT_t int_id)
 

Function Documentation

ALT_STATUS_CODE alt_int_isr_register ( ALT_INT_INTERRUPT_t  int_id,
alt_int_callback_t  callback,
void *  context 
)

Registers a callback for the specified secure interrupt for the CPU interface.

This API only registers a callback for secure interrupts. If a callback is registered for a non-secure interrupt, the behaviour is undefined.

Parameters
int_idThe interrupt identifier to register the handler for. All defined interrupts are valid, 0 - 1019.
callbackThe callback to use when the given interrupt is issued.
contextThe callback context to use for the above callback. When the callback is issued, this parameter will be provided to the callback.
Return values
ALT_E_SUCCESSThe operation was successful.
ALT_E_ERRORThe operation failed.
ALT_STATUS_CODE alt_int_isr_unregister ( ALT_INT_INTERRUPT_t  int_id)

Unregisters the callback for the specified secure interrupt for the CPU interface.

This API only unregisters a callback for secure interrupts. If a callback is unregistered for a non-secure interrupt, the behaviour is undefined.

Parameters
int_idThe interrupt identifier to register the handler for. All defined interrupts are valid, 0 - 1019.
Return values
ALT_E_SUCCESSThe operation was successful.
ALT_E_ERRORThe operation failed.