platformio.ini 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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_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. ; Differs in pinout from ZuluSCSI_RP2040 platform, but shares most of the code.
  106. [env:ZuluSCSI_BS2]
  107. platform = raspberrypi@1.9.0
  108. framework = arduino
  109. board = ZuluSCSI_RP2040
  110. extra_scripts = src/build_bootloader.py
  111. board_build.ldscript = lib/ZuluSCSI_platform_RP2040/rp2040.ld
  112. ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
  113. lib_deps =
  114. SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
  115. minIni
  116. ZuluSCSI_platform_RP2040
  117. SCSI2SD
  118. CUEParser
  119. build_flags =
  120. -O2 -Isrc -ggdb -g3
  121. -Wall -Wno-sign-compare -Wno-ignored-qualifiers
  122. -DSPI_DRIVER_SELECT=3
  123. -DSD_CHIP_SELECT_MODE=2
  124. -DENABLE_DEDICATED_SPI=1
  125. -DHAS_SDIO_CLASS
  126. -DUSE_ARDUINO=1
  127. -DZULUSCSI_BS2