![]() |
RTEMS 6.1-rc7
|
This source file contains the interrupt controller support implementation. More...
#include <bsp.h>
#include <bsp/irq-generic.h>
#include <bsp/tms570.h>
#include <bsp/irq.h>
#include <rtems/score/armv4.h>
This source file contains the interrupt controller support implementation.
void bsp_interrupt_dispatch | ( | void | ) |
Interrupt dispatch.
Called by OS to determine which interrupt occured. Function passes control to interrupt handler.
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. |