forked from Panda381/PicoLibSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_setup.sh
executable file
·73 lines (68 loc) · 1.83 KB
/
_setup.sh
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
#!/bin/bash
# exportup device to compile
# First command-line parameter ($1) of this script contains device name (e.g. picopad10).
# This script is called from the _c1.sh file.
# Use configuration name as parameter of the script, to select target device:
# pico .......... base Raspberry Pico module, optionally with UART on pins GPIO0 and GPIO1
# picotron ...... Picotron with VGA YRGB1111 output
# picoinomini ... Picoino mini version with VGA RGB332 output
# picoino10 ..... Picoino version 1.0 with VGA RGB332 output
# demovga ....... DemoVGA board with VGA RGB565 output
# picopad08 ..... PicoPad beta version 0.8
# picopad10 ..... PicoPad version 1.0 with TFT RGB565 output
# picopadvga .... PicoPad with VGA RGB565 output
# extdisp ....... extern VGA/DVI display module
# (empty) ....... default compilation
case "$1" in
"pico")
export DEVICE="pico"
export DEVCLASS="pico"
export DEVDIR="!Pico"
;;
"picotron")
export DEVICE="picotron"
export DEVCLASS="picotron"
export DEVDIR="!Picotron"
;;
"picoinomini")
export DEVICE="picoinomini"
export DEVCLASS="picoino"
export DEVDIR="!PicoinoMini"
;;
"picoino10")
export DEVICE="picoino10"
export DEVCLASS="picoino"
export DEVDIR="!Picoino10"
;;
"demovga")
export DEVICE="demovga"
export DEVCLASS="demovga"
export DEVDIR="!DemoVGA"
;;
"picopad08")
export DEVICE="picopad08"
export DEVCLASS="picopad"
export DEVDIR="!PicoPad08"
;;
"picopad10")
export DEVICE="picopad10"
export DEVCLASS="picopad"
export DEVDIR="!PicoPad10"
;;
"picopadvga")
export DEVICE="picopadvga"
export DEVCLASS="picopad"
export DEVDIR="!PicoPadVGA"
;;
"extdisp")
export DEVICE="extdisp"
export DEVCLASS="pico"
export DEVDIR="!Pico"
;;
*)
export DEVICE="pico" # pad10"
export DEVCLASS="pico" # pad"
export DEVDIR="!Pico" # Pad10"
;;
esac
return