platformio.ini 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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 =
  41. toolchain-gccarmnoneeabi@1.60301.0
  42. framework-spl-gd32@https://github.com/CommunityGD32Cores/gd32-pio-spl-package.git
  43. extra_scripts = src/build_bootloader.py
  44. debug_build_flags = -Os -ggdb -g3
  45. build_flags =
  46. -Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
  47. -D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
  48. -DSPI_DRIVER_SELECT=3
  49. -DSD_CHIP_SELECT_MODE=2
  50. -DENABLE_DEDICATED_SPI=1
  51. -DZULUSCSI_V1_0
  52. ; ZuluSCSI V1.0 mini hardware platform with GD32F205 CPU.
  53. [env:ZuluSCSIv1_0_mini]
  54. extends = env:ZuluSCSIv1_0
  55. build_flags =
  56. -Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
  57. -D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
  58. -DSPI_DRIVER_SELECT=3
  59. -DSD_CHIP_SELECT_MODE=2
  60. -DENABLE_DEDICATED_SPI=1
  61. -DZULUSCSI_V1_0
  62. -DZULUSCSI_V1_0_mini
  63. ; ZuluSCSI V1.1 hardware platform, similar to V1.0 but with improved performance.
  64. [env:ZuluSCSIv1_1]
  65. extends = env:ZuluSCSIv1_0
  66. build_flags =
  67. -Os -Wall -Wno-sign-compare -ggdb -g3 -Isrc
  68. -D__SYSTEM_CLOCK_120M_PLL_IRC8M=120000000
  69. -DSPI_DRIVER_SELECT=3
  70. -DSD_CHIP_SELECT_MODE=2
  71. -DENABLE_DEDICATED_SPI=1
  72. -DHAS_SDIO_CLASS
  73. -DZULUSCSI_V1_1
  74. ; ZuluSCSI RP2040 hardware platform, based on the Raspberry Pi foundation RP2040 microcontroller
  75. [env:ZuluSCSI_RP2040]
  76. platform = raspberrypi@1.8.0
  77. framework = arduino
  78. board = ZuluSCSI_RP2040
  79. extra_scripts = src/build_bootloader.py
  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. ; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB
  104. ; Differs in pinout from ZuluSCSI_RP2040 platform, but shares most of the code.
  105. [env:ZuluSCSI_BS2]
  106. platform = raspberrypi@1.8.0
  107. framework = arduino
  108. board = ZuluSCSI_RP2040
  109. extra_scripts = src/build_bootloader.py
  110. board_build.ldscript = lib/ZuluSCSI_platform_RP2040/rp2040.ld
  111. ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
  112. lib_deps =
  113. SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
  114. minIni
  115. ZuluSCSI_platform_RP2040
  116. SCSI2SD
  117. CUEParser
  118. build_flags =
  119. -O2 -Isrc -ggdb -g3
  120. -Wall -Wno-sign-compare -Wno-ignored-qualifiers
  121. -DSPI_DRIVER_SELECT=3
  122. -DSD_CHIP_SELECT_MODE=2
  123. -DENABLE_DEDICATED_SPI=1
  124. -DHAS_SDIO_CLASS
  125. -DUSE_ARDUINO=1
  126. -DZULUSCSI_BS2