Device Driver Source Code
Other versions of this page are also available for the following:
8/28/2008
The following topic contains information about device driver source code and the directories where it is located.
The device driver source code is separated into hardware platform dependent code, system-on-chip (SOC) drivers, and common drivers. With this directory structure, you can copy a public driver to your %_TGTPLAT% directory, and then optimize and test the driver.**
For information on testing drivers, see How to Use the CETK to Test a Driver.
The following table shows the location of the device driver source code.
Path | Description |
---|---|
%_WINCEROOT%\Platform\%_TGTPLAT% |
Contains hardware platform dependent code. This directory primarily contains the OAL, configuration files, and BSP drivers. You should not have to modify the hardware platform dependent drivers in %_WINCEROOT%\Platform\%_TGTPLAT%\Drivers. |
%_WINCEROOT%\Platform\Common\Src\SOC |
Contains SOC drivers for high-integration microprocessors or microprocessor companions with many native peripherals integrated onto the microprocessor. SOC drivers include microprocessor-specific OAL drivers for real-time clocks, timers, debug Ethernet cards, and so on. Standard development boards (SDBs) with the same microprocessors can use the same set of SOC drivers. |
%_WINCEROOT%\Public\Common\OAK\Drivers |
Contains common drivers for non-native peripherals, which are devices that exist on a plug-in card or are wired directly to a circuit board. Common drivers contain platform-independent code that links to the platform-dependent code to create a hardware driver. Common drivers are not specific to a hardware platform or microprocessor. Any SDB can use common drivers. |