Creating an Interrupt Identifier (Windows Embedded CE 6.0)

1/5/2010

In addition to using the predefined interrupt identifiers, you can define identifiers in your OEM adaptation layer (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 must be less than SYSINTR_MAXIMUM.

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

Tasks

How to Develop an OEM Adaptation Layer

Concepts

Implementing an ISR