Compartilhar via


Creating a Catalog Item that Represents a Device Driver (Windows Embedded CE 6.0)

1/6/2010

This topic describes how to create and set properties for an item in a Catalog file so that it can represent a device driver in the Platform Builder Catalog.

To create a Catalog item, you must have already created a Catalog file. For more information, see Using the Catalog Editor to Create a Catalog File.

To create a Catalog item that represents a device driver

  1. In Catalog Editor, choose the Add arrow, and then choose Catalog Item.

  2. Browse to the new Catalog item and select it.

    The Properties window displays the property settings for the selected Catalog item in the .pbcxml file.

  3. Click in the box next to Supported CPUs, select which CPUs will support your device driver, and then choose OK. In this example, select x86.

  4. Click in the box next to Type, and then choose the Catalog item group to which you want to add the device driver. In this example, choose General.

  5. In the box next to Title, type a name for the Catalog item that you want to add to the Catalog. In this example, type "My Device Driver".

  6. In the box next to Unique Id, type a unique ID for the Catalog item that follows the expected format. If the device driver can be used with various board support packages (BSPs), you can use the format Item:VENDOR:SYSGEN. If the device driver is BSP-specific, you can use the format Item:VENDOR:MODULE:BSPDIR. In this example, type "MyDriver:MyCompany:sysgen_my_driver".

  7. Click in the box next to Modules. Type the full name of each file that represents a module that implements the functionality of this driver. For example, type "MyDriver.dll". Choose OK.

  8. Click in the box next to Modules. Type the full name of each file that represents a module that implements the functionality of this driver. For example, type "MyDriver.dll". Choose OK.

  9. In the box next to Sysgen variable, type a Sysgen variable for your selectable Catalog item. For example, type "SYSGEN_MY_DRIVER".

  10. Add any additional property values that you want for the Catalog item. For more information about property values, see Catalog Item Properties.

  11. If you want to add a link to driver source code, add a source-code link to the Catalog item. This source-code link is for display purposes only. For more information, see Adding a Source Code Link to a Catalog File.

  12. On the File menu, choose Save <MyCatalogFile>.pbcxml.

See Also

Tasks

How to Add a Device Driver to the Catalog
Using the Catalog Editor to Create a Catalog File

Concepts

Catalog Item Properties