22.6.1.4.1 Function system_interrupt_set_priority()
Set interrupt vector priority level.
enum status_code system_interrupt_set_priority( const enum system_interrupt_vector vector, const enum system_interrupt_priority_level priority_level)
Set the priority level of an external interrupt or exception.
Data direction | Parameter name | Description |
---|---|---|
[in] |
vector |
Interrupt vector to change |
[in] |
priority_level |
New vector priority level to set |
Returns
Status code indicating if the priority level of the interrupt was successfully set.
Return value | Description |
---|---|
STATUS_OK |
If no error was detected |
STATUS_INVALID_ARG |
If an unsupported interrupt vector number was given |