RTEMS
5.1
|
Go to the source code of this file.
Functions | |
void | PIO_InitializeInterrupts (uint32_t dwPriority) |
void | PIO_ConfigureIt (const Pin *pPin, void(*handler)(const Pin *, void *arg), void *arg) |
rtems_status_code | PIO_RemoveIt (const Pin *pPin, void(*handler)(const Pin *, void *arg), void *arg) |
void | PIO_IT_InterruptHandler (void) |
void | PioInterruptHandler (uint32_t id, Pio *pPio) |
void | PIO_CaptureHandler (void) |
The PIO_CaptureHandler must be called by the PIO Capture Interrupt Service Routine with the corresponding PIO Capture instance. | |
Configuration and handling of interrupts on PIO status changes. The API provided here have several advantages over the traditional PIO interrupt configuration approach:
However, it also has several minor drawbacks that may prevent from using it in particular applications:
Configures a PIO or a group of PIO to generate an interrupt on status change. The provided interrupt handler will be called with the triggering pin as its parameter (enabling different pin instances to share the same handler).
pPin | Pointer to a Pin instance. |
handler | Interrupt handler function pointer. |
arg | Pointer to interrupt handler argument |
rtems_status_code PIO_RemoveIt | ( | const Pin * | pPin, |
void(*)(const Pin *, void *arg) | handler, | ||
void * | arg | ||
) |
Search for a PIO interrupt and remove it if it is there.
pPin | Pointer to a Pin instance. |
handler | Interrupt handler function pointer. |
arg | Pointer to interrupt handler argument |