forked from devanlai/dap42
-
Notifications
You must be signed in to change notification settings - Fork 6
/
DAP42CDC.inf
99 lines (79 loc) · 3.11 KB
/
DAP42CDC.inf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
; Windows USB CDC ACM driver setup file.
; Copyright (C) 2004 Al Borchers (alborchers@steinerpoint.com)
; Taken from Linux documentation, modified for Black Magic debug probe
; by Gareth McMullin <gareth@blacksphere.co.nz>
; Re-modified by for the DAP42 debug probe by Devan Lai
; This provides the driver information for the GDB and UART interfaces to
; be presented as virtual serial ports in Windows.
; Common to Windows 32- and 64-bit systems
[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%DAP42_DISPLAY_NAME%
DriverVer=28/12/2011,0.0.1.1
[Manufacturer]
%VendorName%=DeviceList, NTamd64
[Strings]
VendorName = "Devanarchy"
DAP42UART = "DAP42 UART Port"
DAP42SLCAN = "DAP42 SLCAN"
DAP42_DISPLAY_NAME = "DAP42 Driver"
[DeviceList]
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0100&MI_01
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0110&MI_01
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0120&MI_01
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0130&MI_01
%DAP42SLCAN%=DriverInstall, USB\VID_1209&PID_da42&Rev_0130&MI_03
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0131&MI_01
%DAP42SLCAN%=DriverInstall, USB\VID_1209&PID_da42&Rev_0131&MI_03
[DeviceList.NTamd64]
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0100&MI_01
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0110&MI_01
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0120&MI_01
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0130&MI_01
%DAP42SLCAN%=DriverInstall, USB\VID_1209&PID_da42&Rev_0130&MI_03
%DAP42UART%=DriverInstall, USB\VID_1209&PID_da42&Rev_0131&MI_01
%DAP42SLCAN%=DriverInstall, USB\VID_1209&PID_da42&Rev_0131&MI_03
[DestinationDirs]
DefaultDestDir=10,System32\Drivers
; Windows 32-bit sections
;~~~~~~~~~~~~~~~~~~~~~~~~~
[DriverInstall.nt]
CopyFiles=DriverCopyFiles.nt
AddReg=DriverInstall.nt.AddReg
[DriverCopyFiles.nt]
usbser.sys,,,0x20
[DriverInstall.nt.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[DriverInstall.nt.Services]
AddService = usbser,0x0002,DriverService.nt
[DriverService.nt]
DisplayName = %DAP42_DISPLAY_NAME%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\usbser.sys
LoadOrderGroup = Base
; Windows 64-bit sections
;~~~~~~~~~~~~~~~~~~~~~~~~~
[DriverInstall.NTamd64]
CopyFiles=DriverCopyFiles.NTamd64
AddReg=DriverInstall.NTamd64.AddReg
[DriverCopyFiles.NTamd64]
usbser.sys,,,0x20
[DriverInstall.NTamd64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[DriverInstall.NTamd64.Services]
AddService = usbser,0x0002,DriverService.NTamd64
[DriverService.NTamd64]
DisplayName = %DAP42_DISPLAY_NAME%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\usbser.sys
LoadOrderGroup = Base