Interrupt Functions
The following functions are available to manage eRTOS interrupt services.
Attaching Function
Releasing Function
- RtReleaseInterrupt releases an interrupt previously attached with RtAttachInterrupt.
Additional Functions
- RtGetPciMsixFreeMessages returns a PCI device’s MSI-X free messages (the MSI-X table entries available for attaching messages).
- RtQueryProcessorVectorFreeCount queries the number of processor vectors (Interrupt Descriptor Table vectors) currently available for attaching interrupts.
- RtQueryPciMsiCapability allows a user to query a PCI device and determine if the device has MSI or MSI-X capability. RtQueryPciMsiCapability is only supported in the Process environment.
- RtDisableInterrupts causes all interrupts to be disabled at the processor level.
- RtEnableInterrupts enables all interrupts disabled by RtDisableInterrupts.
Programming Considerations
General Programming Considerations
- As with any thread, an interrupt thread can be preempted at any time by a thread that runs at a higher thread priority level.
- IRQ affinity is set at the attach time.
- Time slicing effects the execution of ISTs if there is a time quantum set for the IST.
- To mask timer interrupts, use RtDisableInterrupts.
Related topics: