Creating a .cec File for a Driver (Windows CE 5.0)
You can use the BSP Wizard to create a Catalog item (.cec) file for a driver that is compatible with a specific BSP. You can then use the CEC Editor to continue modifying the .cec file that the BSP Wizard has created.
For more information about the BSP Wizard and the CEC Editor, see BSP Wizard Overview and CEC Editor.
To create a BSP-specific Catalog item file using the BSP Wizard
From the Platform menu, choose BSP Wizard and then choose Next.
Choose Modify an existing BSP, select a BSP from the list, which displays all installed BSPs on your development workstation, and then choose Next.
In the Catalog name field, enter a name for your BSP that the Catalog will display, or accept the default name.
(Optional) In the Vendor field, type your company's name.
(Optional) In the Description field, type a description for your new BSP.
This value is shown in the Catalog when you move the pointer over the BSP name.
Choose Next.
In the CPUs list, modify the CPUs that you want your driver to support, and choose Next.
Choose Add driver and on the General tab, type the appropriate information into the Name, Vendor, Version, Size, and Description fields.
The Name field is required; the Vendor, Version, Size, and Description fields are optional.
Note To import a .cec file into the Catalog, you cannot use line feed, punctuation, or carriage return characters in the CEC Editor when you enter the information for the .cec file.
Choose the Type tab; then from the list, select the type of driver you are adding to the .cec file.
Note Choosing the correct type for the driver informs the IDE about your device's characteristics. Accuracy is important if more than one of this driver type exists in a run-time image, or if another instance of this driver type exists in a run-time image.
In the Source code directory field, enter the path to the directory that contains the source code for the selected driver.
In the Driver resolver module field, enter the modules that are required to support this driver.
For example, a display driver depends on the device and display modules. For more information, see Windows CE Modules and Components.
(Optional) To add variables associated with the driver, choose the Variables tab, choose Add, enter the name and value for the environment variable, and choose OK.
Repeat for other environment variables you want to add.
For more information about environment variables you can add, see Environment Variables.
(Optional) Repeat this procedure to add more drivers to the .cec file for the BSP.
Choose Next and then choose Finish to exit the wizard.
After you create a .cec file for your driver using the BSP Wizard, use the CEC Editor to continue customizing the .cec file to fit your needs. For more information, see Customizing a .cec File Using the CEC Editor.
See Also
BSP Wizard Overview | CEC Editor | Device Drivers and the Platform Builder IDE | Device Driver Development Overview
Last updated on Thursday, February 02, 2006
Send Feedback on this topic to the authors