68013 USB驱动设计之.INF篇

1.、基于68013实现USB通信的图像采集系统上位机驱动INF文件设计实例

[Version]
Signature="$CHICAGO$"
Class=USB
provider=%Vismach%
LayoutFile=layout.inf
DriverVer=08/08/2009

[Manufacturer]
%******%=*******

[SourceDisksNames]
1="******************************",,,

[SourceDisksFiles]
Camera3DDriver.inf = 1
Camera3DDriver.sys = 1

[Vismach]
; 300M摄像头驱动程序
%USB/VID_****&PID_****.DeviceDesc%=CARMERADEV.Dev, USB/VID_****&PID_****
; Cypress FX2LP default ID
%USB/VID_04B4&PID_8613.DeviceDesc%=CYPRESSUSB.Dev, USB/VID_04B4&PID_8613

[PreCopySection]
HKR,,NoSetupUI,,1

[DestinationDirs]
CARMERADEV.Files.Ext = 10,System32/Drivers
CARMERADEV.Files.Inf = 10,INF
CYPRESSUSB.Files.Ext = 10,System32/Drivers
CYPRESSUSB.Files.Inf = 10,INF

[CYPRESSUSB.Dev]
CopyFiles=CYPRESSUSB.Files.Ext, CYPRESSUSB.Files.Inf
AddReg=CYPRESSUSB.AddReg

[CYPRESSUSB.Dev.NT]
; copyfiles commented out for Win2K to avoid user intervention during install
CopyFiles=CYPRESSUSB.Files.Ext, CYPRESSUSB.Files.Inf
AddReg=CYPRESSUSB.AddReg

[CYPRESSUSB.Dev.NT.Services]
Addservice = CYPRESSUSB, 0x00000002, CYPRESSUSB.AddService

[CYPRESSUSB.AddService]
DisplayName    = %CYPRESSUSB.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 2                  ; SERVICE_AUTO_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%/System32/Drivers/Camera3DDriver.sys
LoadOrderGroup = Base

[CYPRESSUSB.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,Camera3DDriver.sys

[CYPRESSUSB.Files.Ext]
Camera3DDriver.sys

[CYPRESSUSB.Files.Inf]
Camera3DDriver.Inf

[CARMERADEV.Dev]
CopyFiles=CARMERADEV.Files.Ext, CARMERADEV.Files.Inf
AddReg=CARMERADEV.AddReg

[CARMERADEV.Dev.NT]
; copyfiles commented out for Win2K to avoid user intervention during install
CopyFiles=CARMERADEV.Files.Ext, CARMERADEV.Files.Inf
AddReg=CARMERADEV.AddReg

[CARMERADEV.Dev.NT.Services]
Addservice = CARMERADEV, 0x00000002, CARMERADEV.AddService

[CARMERADEV.AddService]
DisplayName    = %CARMERADEV.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 2                  ; SERVICE_AUTO_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%/System32/Drivers/Camera3DDriver.sys
LoadOrderGroup = Base

[CARMERADEV.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,Camera3DDriver.sys

[CARMERADEV.Files.Ext]
Camera3DDriver.sys

[CARMERADEV.Files.Inf]
Camera3DDriver.Inf

;---------------------------------------------------------------;

[Strings]
Vismach="Vismach Technology Co.,Ltd."
USB/VID_564D&PID_0000.DeviceDesc="*******************"
USB/VID_04B4&PID_8613.DeviceDesc="Cypress EZ-USB FX2LP - EEPROM missing"

CYPRESSUSB.SvcDesc="Cypress EZ-USB FX2LP (Camera3DDriver.sys)"
CARMERADEV.SvcDesc="**********************(Camera3DDriver.sys)"

 

2、其中*号表示驱动名及设备VID,PID可自己设置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值