RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Modules | Files | Macros | Enumerations | Functions
QorIQ - Interrupt Support

Interrupt support. More...

Modules

 QorIQ - External Interrupt Sources
 External interrupt sources.
 
 QorIQ - Internal Interrupt Sources
 Internal interrupt sources.
 
 QorIQ - Interprocessor Interrupts
 Interprocessor interrupts.
 
 QorIQ - P1020 Internal Interrupt Sources
 P1020 internal interrupt sources.
 
 QorIQ - P2020 Internal Interrupt Sources
 P2020 internal interrupt sources.
 

Files

file  irq.h
 Interrupt API.
 

Macros

#define QORIQ_PIC_PRIORITY_LOWEST   1
 
#define QORIQ_PIC_PRIORITY_HIGHEST   15
 
#define QORIQ_PIC_PRIORITY_DISABLED   0
 
#define QORIQ_PIC_PRIORITY_INVALID   (QORIQ_PIC_PRIORITY_HIGHEST + 1)
 
#define QORIQ_PIC_PRIORITY_DEFAULT   (QORIQ_PIC_PRIORITY_LOWEST + 1)
 
#define QORIQ_PIC_PRIORITY_IS_VALID(p)    ((p) >= QORIQ_PIC_PRIORITY_DISABLED && (p) <= QORIQ_PIC_PRIORITY_HIGHEST)
 

Enumerations

enum  qoriq_eirq_sense_and_polarity { QORIQ_EIRQ_TRIGGER_EDGE_FALLING , QORIQ_EIRQ_TRIGGER_EDGE_RISING , QORIQ_EIRQ_TRIGGER_LEVEL_LOW , QORIQ_EIRQ_TRIGGER_LEVEL_HIGH }
 

Functions

rtems_status_code qoriq_pic_set_priority (rtems_vector_number vector, int new_priority, int *old_priority)
 
rtems_status_code bsp_interrupt_set_affinity (rtems_vector_number vector, const Processor_mask *affinity)
 
rtems_status_code bsp_interrupt_get_affinity (rtems_vector_number vector, Processor_mask *affinity)
 
rtems_status_code qoriq_pic_msi_allocate (rtems_vector_number *vector)
 
rtems_status_code qoriq_pic_msi_free (rtems_vector_number vector)
 
rtems_status_code qoriq_pic_msi_map (rtems_vector_number vector, uint64_t *addr, uint32_t *data)
 
rtems_status_code qoriq_pic_set_sense_and_polarity (rtems_vector_number vector, qoriq_eirq_sense_and_polarity new_sense_and_polarity, qoriq_eirq_sense_and_polarity *old_sense_and_polarity)
 Change polarity and sense settings of external interrupts.
 

Detailed Description

Interrupt support.

Function Documentation

◆ qoriq_pic_set_sense_and_polarity()

rtems_status_code qoriq_pic_set_sense_and_polarity ( rtems_vector_number  vector,
qoriq_eirq_sense_and_polarity  new_sense_and_polarity,
qoriq_eirq_sense_and_polarity *  old_sense_and_polarity 
)

Change polarity and sense settings of external interrupts.

NOTE: There are only very rare edge cases where you need this function.

vector must be the vector number of an external interrupt.

Use new_sense_and_polarity to select the new setting. If old_sense_and_polarity is not NULL, the old value is returned.

Returns
RTEMS_SUCCSSSFUL on sucess or other values for invalid settings.