This group of APIs performs Interrupt Service Routine (ISR) related functions.
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_id | The interrupt identifier to register the handler for. All defined interrupts are valid, 0 - 1019. |
callback | The callback to use when the given interrupt is issued. |
context | The 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_SUCCESS | The operation was successful. |
ALT_E_ERROR | The 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_id | The interrupt identifier to register the handler for. All defined interrupts are valid, 0 - 1019. |
- Return values
-
ALT_E_SUCCESS | The operation was successful. |
ALT_E_ERROR | The operation failed. |