Technical Document #115


Technical Document #115

Doc ID: 115
Product: WinDriver
Version: 5.22 and above

How can I improve the rate of the interrupt handling when using DriverBuilder for VxWorks?

Beginning with version 5.22, WinDriver for VxWorks (a.k.a. DriverBuilder) implements a call-back routine - windrvr_isr - which, if set by the user, is executed immediately when an interrupt is received, thus enabling you to speed up interrupt acknowledgment and processing.

WinDriver includes the following declaration of windrvr_isr:
int (__cdecl *windrvr_isr)(void);

To use the windrvr_isr call-back routine, do the following:

  • Implement your interrupt handler routine:

    int __cdecl my_isr(void)
    {
      // implenet your ISR
      return TRUE; // If TRUE, continue regular
                  // WinDriver hanlding;
                  // If FALSE, exit ISR.
    }

  • Include the following declaration in your code:
    extern int (__cdecl *windrvr_isr)(void);

  • Set windrvr_isr to point to your interrupt handler routine, after calling drvrInit():
    windrvr_isr = my_isr;


Back to Top
  |  Corporate Index  |