共用方式為


Add the Stream Driver Files to Your BSP (Compact 7)

3/12/2014

The folder for each driver in your BSP is located under the following path: %_WINCEROOT%\platform\<Your BSP>\src\drivers.

Note

%_WINCEROOT% represents the directory of your Windows Embedded Compact 7 installation.

Before you can add new driver files to your BSP, you must create a new folder for your driver. The generic sample driver included with Windows Embedded Compact 7 is called streamdriver and will serve as the starting point for your driver.

To add the stream driver files to your BSP

  1. In your BSP driver folder, create a folder called streamdriver. The resulting path will be:

    %_WINCEROOT%\platform\<Your BSP>\src\drivers\streamdriver

  2. Copy the sample driver files to your stream driver folder from the following location:

    %_WINCEROOT%\platform\BSPTemplate\src\drivers\streamdriver

  3. When you finish copying the files, the following files are in your stream driver folder:

    • makefile
    • readme.html
    • sources
    • streamdriver.bib
    • streamdriver.cpp
    • streamdriver.def
    • streamdriver.reg

See Also

Concepts

Add and Build a Device Driver