原创 68013 USB驱动设计之.INF篇

2010-8-27 09:52 3066 4 4 分类: 医疗电子

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可自己设置

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
4
关闭 站长推荐上一条 /3 下一条