Common Drivers

Common drivers make up the majority of drivers provided by Platform Builder. Using CEDDK functions, common drivers typically operate in a manner that is neutral regarding buses. Common driver sources reside in %_WINCEROOT%\Public\Common\Oak\Drivers and are typically included in the Common.bib and Common.reg files. Therefore, including the drivers in your BSP only involves setting the appropriate environment variables to select the driver.

To determine the variables that need to be set, look at an existing platform that already includes the driver of interest. For example, to include the MQ200 driver in your BSP, simply edit your platform batch file; in this case, %_WINCEROOT%\Platform\<Platform>\<Platform>.bat; include BSP_DISPLAY_MQ200=1, and make sure that BSP_NODISPLAY is not set to 1 by default.

Any time a project is created based on your platform, the BSP_DISPLAY_MQ200 variable is set to 1. As long as the core OS components selected include a display, the MQ200 driver is included in the OS image.

See Also

CSP Drivers | BSP Drivers | Device Driver Libraries

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.