-
Notifications
You must be signed in to change notification settings - Fork 7
/
_setup.bat
83 lines (70 loc) · 1.91 KB
/
_setup.bat
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
@echo off
rem Setup device to compile
rem First command-line parameter (%1) of this batch contains device name (e.g. picopad10).
rem This batch is called from the _c1.bat file.
rem Use configuration name as parameter of the batch, to select target device:
rem pico .......... base Raspberry Pico module, optionally with UART on pins GPIO0 and GPIO1
rem picotron ...... Picotron with VGA YRGB1111 output
rem picoinomini ... Picoino mini version with VGA RGB332 output
rem picoino10 ..... Picoino version 1.0 with VGA RGB332 output
rem demovga ....... DemoVGA board with VGA RGB565 output
rem picopad08 ..... PicoPad beta version 0.8
rem picopad10 ..... PicoPad version 1.0 with TFT RGB565 output
rem picopadvga .... PicoPad with VGA RGB565 output
rem (empty) ....... default compilation
rem Move ":default" label before configuration, which you want to use as default.
if "%1"=="pico" goto pico
if "%1"=="picotron" goto picotron
if "%1"=="picoinomini" goto picoinomini
if "%1"=="picoino10" goto picoino10
if "%1"=="demovga" goto demovga
if "%1"=="picopad08" goto picopad08
if "%1"=="picopad10" goto picopad10
if "%1"=="picopadvga" goto picopadvga
if "%1"=="" goto default
echo.
echo Incorrect configuration "%1"!
echo Press Ctrl+C to break compilation.
pause
goto default
:pico
set DEVICE=pico
set DEVCLASS=pico
set DEVDIR=!Pico
exit /b
:picotron
set DEVICE=picotron
set DEVCLASS=picotron
set DEVDIR=!Picotron
exit /b
:picoinomini
set DEVICE=picoinomini
set DEVCLASS=picoino
set DEVDIR=!PicoinoMini
exit /b
:picoino10
set DEVICE=picoino10
set DEVCLASS=picoino
set DEVDIR=!Picoino10
exit /b
:demovga
set DEVICE=demovga
set DEVCLASS=demovga
set DEVDIR=!DemoVGA
exit /b
:picopad08
set DEVICE=picopad08
set DEVCLASS=picopad
set DEVDIR=!PicoPad08
exit /b
:default
:picopad10
set DEVICE=picopad10
set DEVCLASS=picopad
set DEVDIR=!PicoPad10
exit /b
:picopadvga
set DEVICE=picopadvga
set DEVCLASS=picopad
set DEVDIR=!PicoPadVGA
exit /b