RTEMS 6.3
Loading...
Searching...
No Matches
QorIQ - Interrupt Support

Interrupt support. More...

Topics

 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  bsps/powerpc/qoriq/include/bsp/irq.h
 Interrupt API.

Macros

#define QORIQ_PIC_PRIORITY_LOWEST   14
#define QORIQ_PIC_PRIORITY_HIGHEST   0
#define QORIQ_PIC_PRIORITY_DISABLED   15
#define QORIQ_PIC_PRIORITY_INVALID   16
#define QORIQ_PIC_PRIORITY_DEFAULT   13
#define QORIQ_PIC_PRIORITY_IS_VALID(p)

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

Macro Definition Documentation

◆ QORIQ_PIC_PRIORITY_IS_VALID

#define QORIQ_PIC_PRIORITY_IS_VALID ( p)
Value:
(((uint32_t) (p)) <= QORIQ_PIC_PRIORITY_DISABLED)
unsigned p
Definition tte.h:17

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.