platformio.ini 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. ; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
  2. [platformio]
  3. default_envs = ZuluSCSIv1_0, ZuluSCSIv1_0_mini, ZuluSCSIv1_1, ZuluSCSI_RP2040, ZuluSCSI_RP2040_Audio, ZuluSCSI_Pico, ZuluSCSI_BS2
  4. ; Example platform to serve as a base for porting efforts
  5. [env:template]
  6. platform = ststm32
  7. framework = arduino
  8. board = bluepill_f103c8
  9. build_flags =
  10. -Os -Isrc
  11. -DLOGBUFSIZE=512
  12. -DPREFETCH_BUFFER_SIZE=0
  13. -DMAX_SECTOR_SIZE=2048
  14. -DSCSI2SD_BUFFER_SIZE=4096
  15. -DINI_CACHE_SIZE=0
  16. -DUSE_ARDUINO=1
  17. lib_deps =
  18. SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
  19. minIni
  20. ZuluSCSI_platform_template
  21. SCSI2SD
  22. CUEParser
  23. ; ZuluSCSI V1.0 hardware platform with GD32F205 CPU.
  24. [env:ZuluSCSIv1_0]
  25. platform = https://github.com/CommunityGD32Cores/platform-gd32.git
  26. board = genericGD32F205VC
  27. board_build.mcu = gd32f205vct6
  28. board_build.core = gd32
  29. board_build.ldscript = lib/ZuluSCSI_platform_GD32F205/zuluscsi_gd32f205.ld
  30. ldscript_bootloader = lib/ZuluSCSI_platform_GD32F205/zuluscsi_gd32f205_btldr.ld
  31. framework = spl
  32. lib_compat_mode = off
  33. lib_deps =
  34. SdFat_NoArduino
  35. minIni
  36. ZuluSCSI_platform_GD32F205
  37. SCSI2SD
  38. CUEParser
  39. upload_protocol = stlink
  40. platform_packages = platformio/toolchain-gccarmnoneeabi@1.100301.220327
  41. framework-spl-gd32@https://github.com/CommunityGD32Cores/gd32-pio-spl-package.git
  42. extra_scripts = src/build_bootloader.py
  43. debug_build_flags = -Os -ggdb -g3
  44. build_flags =
  45. -Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
  46. -D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
  47. -DSPI_DRIVER_SELECT=3
  48. -DSD_CHIP_SELECT_MODE=2
  49. -DENABLE_DEDICATED_SPI=1
  50. -DZULUSCSI_V1_0
  51. ; ZuluSCSI V1.0 mini hardware platform with GD32F205 CPU.
  52. [env:ZuluSCSIv1_0_mini]
  53. extends = env:ZuluSCSIv1_0
  54. build_flags =
  55. -Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
  56. -D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
  57. -DSPI_DRIVER_SELECT=3
  58. -DSD_CHIP_SELECT_MODE=2
  59. -DENABLE_DEDICATED_SPI=1
  60. -DZULUSCSI_V1_0
  61. -DZULUSCSI_V1_0_mini
  62. ; ZuluSCSI V1.1 hardware platform, similar to V1.0 but with improved performance.
  63. [env:ZuluSCSIv1_1]
  64. extends = env:ZuluSCSIv1_0
  65. build_flags =
  66. -Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
  67. -D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
  68. -DSPI_DRIVER_SELECT=3
  69. -DSD_CHIP_SELECT_MODE=2
  70. -DENABLE_DEDICATED_SPI=1
  71. -DHAS_SDIO_CLASS
  72. -DZULUSCSI_V1_1
  73. ; ZuluSCSI RP2040 hardware platform, based on the Raspberry Pi foundation RP2040 microcontroller
  74. [env:ZuluSCSI_RP2040]
  75. platform = raspberrypi@1.9.0
  76. framework = arduino
  77. board = ZuluSCSI_RP2040
  78. extra_scripts = src/build_bootloader.py
  79. platform_packages = platformio/toolchain-gccarmnoneeabi@1.100301.220327
  80. board_build.ldscript = lib/ZuluSCSI_platform_RP2040/rp2040.ld
  81. ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
  82. lib_deps =
  83. SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
  84. minIni
  85. ZuluSCSI_platform_RP2040
  86. SCSI2SD
  87. CUEParser
  88. build_flags =
  89. -O2 -Isrc -ggdb -g3
  90. -Wall -Wno-sign-compare -Wno-ignored-qualifiers
  91. -DSPI_DRIVER_SELECT=3
  92. -DSD_CHIP_SELECT_MODE=2
  93. -DENABLE_DEDICATED_SPI=1
  94. -DHAS_SDIO_CLASS
  95. -DUSE_ARDUINO=1
  96. -DZULUSCSI_V2_0
  97. ; ZuluSCSI RP2040 hardware platform, as above, but with audio output support enabled
  98. [env:ZuluSCSI_RP2040_Audio]
  99. extends = env:ZuluSCSI_RP2040
  100. build_flags =
  101. ${env:ZuluSCSI_RP2040.build_flags}
  102. -DENABLE_AUDIO_OUTPUT
  103. -DLOGBUFSIZE=8192
  104. ; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB
  105. ; Part of the ZuluSCSI_RP2040 platform, but with different pins.
  106. [env:ZuluSCSI_Pico]
  107. extends = env:ZuluSCSI_RP2040
  108. build_flags =
  109. -O2 -Isrc -ggdb -g3
  110. -Wall -Wno-sign-compare -Wno-ignored-qualifiers
  111. -DSPI_DRIVER_SELECT=3
  112. -DSD_CHIP_SELECT_MODE=2
  113. -DENABLE_DEDICATED_SPI=1
  114. -DHAS_SDIO_CLASS
  115. -DUSE_ARDUINO=1
  116. -DZULUSCSI_PICO
  117. ; Build for the ZuluSCSI Pico carrier board with a Pico-W
  118. ; for SCSI DaynaPORT emulation
  119. [env:ZuluSCSI_Pico_Net_DaynaPORT]
  120. platform = https://github.com/maxgerhardt/platform-raspberrypi.git
  121. platform_packages = platformio/toolchain-gccarmnoneeabi@1.100301.220327
  122. framework-arduinopico@https://github.com/rabbitholecomputing/arduino-pico.git#v3.6.0-DaynaPORT
  123. framework = arduino
  124. board = rpipicow
  125. board_build.core = earlephilhower
  126. debug_tool = cmsis-dap
  127. lib_deps =
  128. SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
  129. minIni
  130. ZuluSCSI_platform_RP2040
  131. SCSI2SD
  132. CUEParser
  133. build_flags =
  134. -O2 -Isrc -ggdb -g3
  135. -Wall -Wno-sign-compare -Wno-ignored-qualifiers
  136. -DSPI_DRIVER_SELECT=3
  137. -DSD_CHIP_SELECT_MODE=2
  138. -DENABLE_DEDICATED_SPI=1
  139. -DHAS_SDIO_CLASS
  140. -DUSE_ARDUINO=1
  141. -DZULUSCSI_PICO
  142. -DZULUSCSI_NETWORK
  143. -DZULUSCSI_DAYNAPORT
  144. ; build flags mirroring the framework-arduinopico#v3.6.0-DaynaPORT static library build
  145. -DPICO_CYW43_ARCH_POLL=1
  146. -DCYW43_LWIP=0
  147. -DCYW43_USE_OTP_MAC=0
  148. ; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB
  149. ; Differs in pinout from ZuluSCSI_RP2040 platform, but shares most of the code.
  150. [env:ZuluSCSI_BS2]
  151. extends = env:ZuluSCSI_RP2040
  152. build_flags =
  153. -O2 -Isrc -ggdb -g3
  154. -Wall -Wno-sign-compare -Wno-ignored-qualifiers
  155. -DSPI_DRIVER_SELECT=3
  156. -DSD_CHIP_SELECT_MODE=2
  157. -DENABLE_DEDICATED_SPI=1
  158. -DHAS_SDIO_CLASS
  159. -DUSE_ARDUINO=1
  160. -DZULUSCSI_BS2
  161. ; ZuluSCSI F4 hardware platform with GD32F450ZET6 CPU.
  162. [env:ZuluSCSIv1_4]
  163. platform = https://github.com/CommunityGD32Cores/platform-gd32.git
  164. board = genericGD32F450ZE
  165. board_build.mcu = gd32f450zet6
  166. board_build.core = gd32
  167. board_build.ldscript = lib/ZuluSCSI_platform_GD32F450/zuluscsi_gd32f450.ld
  168. ldscript_bootloader = lib/ZuluSCSI_platform_GD32F450/zuluscsi_gd32f450_btldr.ld
  169. framework = spl
  170. lib_compat_mode = off
  171. lib_deps =
  172. GD32F4xx_usbfs_library
  173. SdFat_NoArduino
  174. minIni
  175. ZuluSCSI_platform_GD32F450
  176. SCSI2SD
  177. CUEParser
  178. upload_protocol = stlink
  179. platform_packages =
  180. toolchain-gccarmnoneeabi@1.90201.191206
  181. framework-spl-gd32@https://github.com/CommunityGD32Cores/gd32-pio-spl-package.git
  182. extra_scripts = src/build_bootloader.py
  183. debug_tool = cmsis-dap
  184. debug_build_flags = -Os -ggdb -g3
  185. build_flags =
  186. -Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
  187. -D__SYSTEM_CLOCK_200M_PLL_IRC16M=200000000
  188. -DSPI_DRIVER_SELECT=3
  189. -DSD_CHIP_SELECT_MODE=2
  190. -DENABLE_DEDICATED_SPI=1
  191. -DHAS_SDIO_CLASS
  192. -DPIO_USBFS_DEVICE_CDC
  193. -DZULUSCSI_V1_4