Skip to content

Commit f4417a1

Browse files
committed
stmhal: Add Windows .inf file for USB CDC device.
1 parent 2bce0bd commit f4417a1

1 file changed

Lines changed: 92 additions & 0 deletions

File tree

stmhal/pybcdc.inf

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
; Windows USB CDC ACM Setup File
2+
; Based on INF files which were:
3+
; Copyright (c) 2000 Microsoft Corporation
4+
; Copyright (C) 2007 Microchip Technology Inc.
5+
; Likely to be covered by the MLPL as found at:
6+
; <http://msdn.microsoft.com/en-us/cc300389.aspx#MLPL>.
7+
8+
[Version]
9+
Signature="$Windows NT$"
10+
Class=Ports
11+
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
12+
Provider=%MFGNAME%
13+
LayoutFile=layout.inf
14+
DriverVer=03/11/2010,5.1.2600.3
15+
16+
[Manufacturer]
17+
%MFGNAME%=DeviceList, NTamd64
18+
19+
[DestinationDirs]
20+
DefaultDestDir=12
21+
22+
;---------------------------------------------------------------------
23+
; Windows 2000/XP/Server2003/Vista/Server2008/7 - 32bit Sections
24+
25+
[DriverInstall.nt]
26+
include=mdmcpq.inf
27+
CopyFiles=DriverCopyFiles.nt
28+
AddReg=DriverInstall.nt.AddReg
29+
30+
[DriverCopyFiles.nt]
31+
usbser.sys,,,0x20
32+
33+
[DriverInstall.nt.AddReg]
34+
HKR,,DevLoader,,*ntkern
35+
HKR,,NTMPDriver,,usbser.sys
36+
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
37+
38+
[DriverInstall.nt.Services]
39+
AddService=usbser, 0x00000002, DriverService.nt
40+
41+
[DriverService.nt]
42+
DisplayName=%SERVICE%
43+
ServiceType=1
44+
StartType=3
45+
ErrorControl=1
46+
ServiceBinary=%12%\usbser.sys
47+
48+
;---------------------------------------------------------------------
49+
; Windows XP/Server2003/Vista/Server2008/7 - 64bit Sections
50+
51+
[DriverInstall.NTamd64]
52+
include=mdmcpq.inf
53+
CopyFiles=DriverCopyFiles.NTamd64
54+
AddReg=DriverInstall.NTamd64.AddReg
55+
56+
[DriverCopyFiles.NTamd64]
57+
usbser.sys,,,0x20
58+
59+
[DriverInstall.NTamd64.AddReg]
60+
HKR,,DevLoader,,*ntkern
61+
HKR,,NTMPDriver,,usbser.sys
62+
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
63+
64+
[DriverInstall.NTamd64.Services]
65+
AddService=usbser, 0x00000002, DriverService.NTamd64
66+
67+
[DriverService.NTamd64]
68+
DisplayName=%SERVICE%
69+
ServiceType=1
70+
StartType=3
71+
ErrorControl=1
72+
ServiceBinary=%12%\usbser.sys
73+
74+
;---------------------------------------------------------------------
75+
; Vendor and Product ID Definitions
76+
77+
[SourceDisksFiles]
78+
[SourceDisksNames]
79+
[DeviceList]
80+
%DESCRIPTION%=DriverInstall, USB\VID_0483&PID_5740&MI_00
81+
82+
[DeviceList.NTamd64]
83+
%DESCRIPTION%=DriverInstall, USB\VID_0483&PID_5740&MI_00
84+
85+
;---------------------------------------------------------------------
86+
; String Definitions
87+
88+
[Strings]
89+
MFGFILENAME="pybcdc"
90+
MFGNAME="Micro Python"
91+
DESCRIPTION="Pyboard USB Comm Port"
92+
SERVICE="USB Serial Driver"

0 commit comments

Comments
 (0)