Skip to content

Commit

Permalink
chore: add tooling for flash under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadien committed Nov 1, 2023
1 parent 8198bfb commit 306fff9
Show file tree
Hide file tree
Showing 6 changed files with 17,117 additions and 0 deletions.
Binary file added avrdude/bin/giveio.sys
Binary file not shown.
34 changes: 34 additions & 0 deletions avrdude/bin/install_giveio.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@set DIRVERNAME=giveio
@set DIRVERFILE=%DIRVERNAME%.sys

@echo Copying the driver to the windows directory
@echo target file: %WINDIR%\%DIRVERFILE%
@copy %DIRVERFILE% %WINDIR%\%DIRVERFILE%

@echo Remove a running service if needed...
@loaddrv stop %DIRVERNAME% >NUL
@if errorlevel 2 goto install

@loaddrv remove %DIRVERNAME% >NUL
@if errorlevel 1 goto install

:install
@echo Installing Windows NT/2k/XP driver: %DIRVERNAME%

@loaddrv install %DIRVERNAME% %WINDIR%\%DIRVERFILE%
@if errorlevel 3 goto error

@loaddrv start %DIRVERNAME%
@if errorlevel 1 goto error

@loaddrv starttype %DIRVERNAME% auto
@if errorlevel 1 goto error

@echo Success
@goto exit

:error
@echo ERROR: Installation of %DIRVERNAME% failed

:exit

14 changes: 14 additions & 0 deletions avrdude/bin/remove_giveio.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@set DIRVERNAME=giveio

@loaddrv stop %DIRVERNAME%
@if errorlevel 2 goto error

@loaddrv remove %DIRVERNAME%
@if errorlevel 1 goto error

@goto exit

:error
@echo ERROR: Deinstallation of %DIRVERNAME% failed

:exit
12 changes: 12 additions & 0 deletions avrdude/bin/status_giveio.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@set DIRVERNAME=giveio

@loaddrv status %DIRVERNAME%
@if errorlevel 1 goto error

@goto exit

:error
@echo ERROR: Status querry for %DIRVERNAME% failed

:exit

Loading

0 comments on commit 306fff9

Please sign in to comment.