![]() |
RTEMS 6.1-rc7
|
This header file provides TMS570 interrupt definitions. More...
Go to the source code of this file.
Functions | |
rtems_status_code | tms570_irq_set_priority (rtems_vector_number vector, uint32_t priority) |
Sets the priority of the interrupt vector. | |
rtems_status_code | tms570_irq_get_priority (rtems_vector_number vector, uint32_t *priority) |
Gets the priority of the interrupt vector. | |
This header file provides TMS570 interrupt definitions.
rtems_status_code tms570_irq_get_priority | ( | rtems_vector_number | vector, |
uint32_t * | priority | ||
) |
Gets the priority of the interrupt vector.
The priority is defined by the VIM interrupt channel. The VIM Interrupt Control (CHANCTRL) registers are searched to get the channel associated with the interrupt vector.
vector | is the number of the interrupt vector to set the priority. |
priority | is the priority to set. |
RTEMS_SUCCESSFUL | The requested operation was successful. |
RTEMS_INVALID_ADDRESS | The priority parameter was NULL. |
RTEMS_INVALID_ID | There was no interrupt vector associated with the number specified by vector . |
RTEMS_NOT_DEFINED | The interrupt has no associated priority. |
rtems_status_code tms570_irq_set_priority | ( | rtems_vector_number | vector, |
uint32_t | priority | ||
) |
Sets the priority of the interrupt vector.
The priority is defined by the VIM interrupt channel. Firstly, the VIM Interrupt Control (CHANCTRL) registers are searched to get the current channel associated with the interrupt vector. The interrupt vector of the channel associated with the priority is assigned to this channel. The specified interrupt vector is assigned to the channel associated with the priority. So, this function swaps the channels of two interrupt vectors.
vector | is the number of the interrupt vector to set the priority. |
priority | is the priority to set. |
RTEMS_SUCCESSFUL | The requested operation was successful. |
RTEMS_INVALID_ID | There was no interrupt vector associated with the number specified by vector . |
RTEMS_INVALID_PRIORITY | The interrupt priority specified in priority was invalid. |