Partager via


Creating an Interrupt Identifier (Windows CE 5.0)

Send Feedback

In addition to using the predefined interrupt identifiers, you can define identifiers in your OAL for your custom target devices.

To create an interrupt identifier

  1. Create a file named Oalintr.h

  2. Define your non-kernel interrupt identifiers in Oalintr.h relative to the value SYSINTR_FIRMWARE.

    For example, you could define the value of an interrupt identifier as SYSINTR_FIRMWARE+1.

    The maximum value of an interrupt identifier should be less than SYSINTR_MAXUMUM or SYSINTR_FIRMWARE+23.

The interrupt identifiers reside in the Oalintr.h file.

For device drivers that need an interrupt identifier, call IOCTL_HAL_REQUEST_SYSINTR or IOCTL_HAL_RELEASE_SYSINTR without using a hard coded or static value so that the device drivers can be more portable.

See Also

How to Develop an OEM Adaptation Layer | Implementing an ISR

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.