Skip to content
Permalink
Browse files

usb: cdc: add .inf file

Added .inf driver file for Windows.
CDC examples will now work on Windows.

Note:
This .inf is not signed and may cause problems during installation.

Signed-off-by: Marcin Szymczyk <Marcin.Szymczyk@nordicsemi.no>
  • Loading branch information...
masz-nordic authored and nashif committed Mar 6, 2019
1 parent e5cbe6a commit a30950c64b22299991ecaceced6a5d4f8d321d96
Showing with 99 additions and 0 deletions.
  1. +99 −0 samples/subsys/usb/inf/zephyr_cdc_acm.inf
@@ -0,0 +1,99 @@
; Copyright (c) 2019 Nordic Semiconductor
; SPDX-License-Identifier: Apache-2.0
; Windows 2000, XP, Vista, 7 and 8 (x32 and x64) driver for Zephyr CDC ACM

[Version]
Signature = "$Windows NT$"
Class = Ports
ClassGuid = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider = %Manufacturer%
DriverVer = 06/03/2019,1.0.0.0
CatalogFile = zephyr_cdc_acm.cat

;----------------------------------------------------------
; Targets
;----------------------------------------------------------
[Manufacturer]
%Manufacturer%=DeviceList, NTAMD64, NTIA64, NTx86

[DeviceList.NTx86]
%ZEPHYR_CDC_ACM_SAMPLE% =DriverInstall, USB\VID_2FE3&PID_0001&MI_00
%ZEPHYR_CDC_COMPISITE_SAMPLE% =DriverInstall, USB\VID_2FE3&PID_0002&MI_00
%ZEPHYR_HID_CDC_SAMPLE_0% =DriverInstall, USB\VID_2FE3&PID_0003&MI_00
%ZEPHYR_HID_CDC_SAMPLE_1% =DriverInstall, USB\VID_2FE3&PID_0003&MI_03

[DeviceList.NTAMD64]
%ZEPHYR_CDC_ACM_SAMPLE% =DriverInstall.NTamd64, USB\VID_2FE3&PID_0001&MI_00
%ZEPHYR_CDC_COMPISITE_SAMPLE% =DriverInstall.NTamd64, USB\VID_2FE3&PID_0002&MI_00
%ZEPHYR_HID_CDC_SAMPLE_0% =DriverInstall.NTamd64, USB\VID_2FE3&PID_0003&MI_00
%ZEPHYR_HID_CDC_SAMPLE_1% =DriverInstall.NTamd64, USB\VID_2FE3&PID_0003&MI_03

[DeviceList.NTIA64]
%ZEPHYR_CDC_ACM_SAMPLE% =DriverInstall.NTamd64, USB\VID_2FE3&PID_0001&MI_00
%ZEPHYR_CDC_COMPISITE_SAMPLE% =DriverInstall.NTamd64, USB\VID_2FE3&PID_0002&MI_00
%ZEPHYR_HID_CDC_SAMPLE_0% =DriverInstall.NTamd64, USB\VID_2FE3&PID_0003&MI_00
%ZEPHYR_HID_CDC_SAMPLE_1% =DriverInstall.NTamd64, USB\VID_2FE3&PID_0003&MI_03

;----------------------------------------------------------
; Windows 2000, XP, Vista, Windows 7, Windows 8 - 32bit
;----------------------------------------------------------

[DestinationDirs]
DefaultDestDir=12
DriverInstall.NT.Copy=12

[DriverInstall.NT]
include=mdmcpq.inf
CopyFiles=DriverInstall.NT.Copy
AddReg=DriverInstall.NT.AddReg

[DriverInstall.NT.Copy]

[DriverInstall.NT.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.NT.Services]
include=mdmcpq.inf
AddService = usbser, 0x00000002, DriverService.NT

[DriverService.NT]
DisplayName = %Serial.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbser.sys
LoadOrderGroup = Base

;----------------------------------------------------------
; Windows XP, Vista, Windows 7, Windows 8 - 64bit
;----------------------------------------------------------

[DriverInstall.NTamd64]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles.NTamd64
AddReg=DriverInstall.NTamd64.AddReg

[DriverCopyFiles.NTamd64]

[DriverInstall.NTamd64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.NTamd64.Services]
AddService=usbser, 0x00000002, DriverService.NT

;----------------------------------------------------------
; String
;----------------------------------------------------------

[Strings]
Manufacturer = "ZEPHYR"
ZEPHYR_CDC_ACM_SAMPLE = "Zephyr CDC ACM sample"
ZEPHYR_CDC_COMPISITE_SAMPLE = "Zephyr CDC ACM Composite sample"
ZEPHYR_HID_CDC_SAMPLE_0 = "Zephyr HID and CDC ACM sample 0"
ZEPHYR_HID_CDC_SAMPLE_1 = "Zephyr HID and CDC ACM sample 1"

Serial.SvcDesc = "USB Serial emulation driver"

0 comments on commit a30950c

Please sign in to comment.
You can’t perform that action at this time.