Use of VxWorks interrupts

Source: Internet
Author: User

VxWorks uses Intconnect () to hook up the interrupt service program, but for PCI devices, the Pciintconnect () hook interrupt is generally used, and the main difference between it and Intconnect () is that the interrupt vector used by Intconnect () is exclusive, Pciintconnect () allows multiple external interrupts to share an interrupt vector. It internally uses a list to manage multiple ISR, when an interrupt occurs, each ISR on a linked list is called sequentially, and Pciintconnect () requires each ISR to be called, first to query whether the interrupt is generated for its own device, or not to return immediately to continue invoking the other ISR.

The application-oriented programming interface in VxWorks is Intconnect (), and its prototype is as follows:

STATUS intconnect (voidfuncptr *vector,voidfuncptr routine,int parameter)

which

Vector: The address of the interrupt vector to be hooked up;

Routine: Call ISR when interrupt occurs;

Parameter: The parameter passed to the IST.

It is generally necessary to use the Inum_to_ivec () function to process the terminal number when calling the Intconnect function.

Use of VxWorks interrupts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.