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.

Table 22-12. Parameters
Data directionParameter nameDescription

[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.

Table 22-13. Return Values
Return valueDescription

STATUS_OK

If no error was detected

STATUS_INVALID_ARG

If an unsupported interrupt vector number was given