forked from espressif/arduino-esp32
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add windows drivers for nano esp32 dfu
- Loading branch information
Showing
6 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
; | ||
; | ||
; Installs WinUsb | ||
; | ||
|
||
[Version] | ||
Signature = "$Windows NT$" | ||
Class = USBDevice | ||
ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6} | ||
Provider = %ManufacturerName% | ||
CatalogFile = nanoesp32.cat | ||
DriverVer = 03/03/2020,10.48.00.000 | ||
|
||
; ========== Manufacturer/Models sections =========== | ||
|
||
[Manufacturer] | ||
%ManufacturerName% = Standard,NTamd64 | ||
|
||
[Standard.NTamd64] | ||
%DeviceName% =USB_Install, USB\VID_2341&PID_0070&MI_00 | ||
|
||
; ========== Class definition =========== | ||
|
||
[ClassInstall32] | ||
AddReg = ClassInstall_AddReg | ||
|
||
[ClassInstall_AddReg] | ||
HKR,,,,%ClassName% | ||
HKR,,NoInstallClass,,1 | ||
HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20" | ||
HKR,,LowerLogoVersion,,5.2 | ||
|
||
; =================== Installation =================== | ||
|
||
[USB_Install] | ||
Include = winusb.inf | ||
Needs = WINUSB.NT | ||
|
||
[USB_Install.Services] | ||
Include = winusb.inf | ||
Needs = WINUSB.NT.Services | ||
|
||
[USB_Install.HW] | ||
AddReg=Dev_AddReg | ||
|
||
[Dev_AddReg] | ||
HKR,,DeviceInterfaceGUIDs,0x10000,"{51de5bfa-d59d-4f3e-9b36-0b4b210dd53f}" | ||
|
||
; [DestinationDirs] | ||
; If your INF needs to copy files, you must not use the DefaultDestDir directive here. | ||
; You must explicitly reference all file-list-section names in this section. | ||
|
||
; =================== Strings =================== | ||
|
||
[Strings] | ||
ManufacturerName="Arduino" | ||
ClassName="Universal Serial Bus devices" | ||
DeviceName="Nano ESP32 DFU" | ||
REG_MULTI_SZ = 0x00010000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@echo off | ||
set ARGS=/SE /SW /SA | ||
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( | ||
drivers\dpinst-amd64.exe %ARGS% | ||
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" ( | ||
drivers\dpinst-amd64.exe %ARGS% | ||
) ELSE ( | ||
drivers\dpinst-x86.exe %ARGS% | ||
) | ||
|
||
@echo off | ||
setlocal | ||
for /f "tokens=4-5 delims=[.] " %%i in ('ver') do @(if %%i==Version (set VERSION=%%j) else (set VERSION=%%i)) | ||
if %VERSION% GEQ 10 ( | ||
exit /b 0 | ||
) | ||
endlocal | ||
|
||
REM dpinst /PATH has problems with relative paths, so use absolute path. | ||
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( | ||
drivers\dpinst-amd64.exe /PATH %cd%\drivers\prewin10 %ARGS% | ||
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" ( | ||
drivers\dpinst-amd64.exe /PATH %cd%\drivers\prewin10 %ARGS% | ||
) ELSE ( | ||
drivers\dpinst-x86.exe /PATH %cd%\drivers\prewin10 %ARGS% | ||
) | ||
|
||
exit /b 0 |