forked from ZuluSCSI/ZuluSCSI-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
124 lines (116 loc) · 3.74 KB
/
platformio.ini
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = ZuluSCSIv1_0, ZuluSCSIv1_0_mini, ZuluSCSIv1_1, ZuluSCSI_RP2040, ZuluSCSI_BS2
; Example platform to serve as a base for porting efforts
[env:template]
platform = ststm32
framework = arduino
board = bluepill_f103c8
build_flags =
-Os -Isrc
-DLOGBUFSIZE=512
-DPREFETCH_BUFFER_SIZE=0
-DMAX_SECTOR_SIZE=2048
-DSCSI2SD_BUFFER_SIZE=4096
-DINI_CACHE_SIZE=0
-DUSE_ARDUINO=1
lib_deps =
SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
minIni
ZuluSCSI_platform_template
SCSI2SD
; ZuluSCSI V1.0 hardware platform with GD32F205 CPU.
[env:ZuluSCSIv1_0]
platform = https://github.com/CommunityGD32Cores/platform-gd32.git
board = genericGD32F205VC
board_build.mcu = gd32f205vct6
board_build.core = gd32
board_build.ldscript = lib/ZuluSCSI_platform_GD32F205/zuluscsi_gd32f205.ld
ldscript_bootloader = lib/ZuluSCSI_platform_GD32F205/zuluscsi_gd32f205_btldr.ld
framework = spl
lib_compat_mode = off
lib_deps =
SdFat_NoArduino
minIni
ZuluSCSI_platform_GD32F205
SCSI2SD
upload_protocol = stlink
platform_packages =
toolchain-gccarmnoneeabi@1.60301.0
framework-spl-gd32@https://github.com/CommunityGD32Cores/gd32-pio-spl-package.git
extra_scripts = src/build_bootloader.py
debug_build_flags = -Os -ggdb -g3
build_flags =
-Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
-D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
-DSPI_DRIVER_SELECT=3
-DSD_CHIP_SELECT_MODE=2
-DENABLE_DEDICATED_SPI=1
-DZULUSCSI_V1_0
; ZuluSCSI V1.0 mini hardware platform with GD32F205 CPU.
[env:ZuluSCSIv1_0_mini]
extends = env:ZuluSCSIv1_0
build_flags =
-Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
-D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
-DSPI_DRIVER_SELECT=3
-DSD_CHIP_SELECT_MODE=2
-DENABLE_DEDICATED_SPI=1
-DZULUSCSI_V1_0
-DZULUSCSI_V1_0_mini
; ZuluSCSI V1.1 hardware platform, similar to V1.0 but with improved performance.
[env:ZuluSCSIv1_1]
extends = env:ZuluSCSIv1_0
build_flags =
-Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
-D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
-DSPI_DRIVER_SELECT=3
-DSD_CHIP_SELECT_MODE=2
-DENABLE_DEDICATED_SPI=1
-DHAS_SDIO_CLASS
-DZULUSCSI_V1_1
; ZuluSCSI RP2040 hardware platform, based on the Raspberry Pi foundation RP2040 microcontroller
[env:ZuluSCSI_RP2040]
platform = raspberrypi@1.8.0
framework = arduino
board = ZuluSCSI_RP2040
extra_scripts = src/build_bootloader.py
board_build.ldscript = lib/ZuluSCSI_platform_RP2040/rp2040.ld
ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
lib_deps =
SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
minIni
ZuluSCSI_platform_RP2040
SCSI2SD
build_flags =
-O2 -Isrc -ggdb -g3
-Wall -Wno-sign-compare -Wno-ignored-qualifiers
-DSPI_DRIVER_SELECT=3
-DSD_CHIP_SELECT_MODE=2
-DENABLE_DEDICATED_SPI=1
-DHAS_SDIO_CLASS
-DUSE_ARDUINO=1
-DZULUSCSI_V2_0
; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB
; Differs in pinout from ZuluSCSI_RP2040 platform, but shares most of the code.
[env:ZuluSCSI_BS2]
platform = raspberrypi@1.8.0
framework = arduino
board = ZuluSCSI_RP2040
extra_scripts = src/build_bootloader.py
board_build.ldscript = lib/ZuluSCSI_platform_RP2040/rp2040.ld
ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
lib_deps =
SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
minIni
ZuluSCSI_platform_RP2040
SCSI2SD
build_flags =
-O2 -Isrc -ggdb -g3
-Wall -Wno-sign-compare -Wno-ignored-qualifiers
-DSPI_DRIVER_SELECT=3
-DSD_CHIP_SELECT_MODE=2
-DENABLE_DEDICATED_SPI=1
-DHAS_SDIO_CLASS
-DUSE_ARDUINO=1
-DZULUSCSI_BS2