-
Notifications
You must be signed in to change notification settings - Fork 27
/
platformio.ini
58 lines (54 loc) · 2 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
; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = BlueSCSI_Pico
; To get the latest pico-sdk code:
; cd ~/.platformio/packages/framework-arduinopico
; git submodule update --remote --rebase pico-sdk
; cd ~/.platformio/packages/framework-arduinopico/tools/libpico
; ./make-libpico.sh
; clean and build in platformio
; BlueSCSI RP2040 hardware platform, based on the Raspberry Pi foundation RP2040 microcontroller
[env:BlueSCSI_Pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#196d31bbafaf60b84751b1a415d8dca2365debdf
platform_packages = platformio/[email protected]
framework-arduinopico@https://github.com/BlueSCSI/arduino-pico-internal.git#e139b9c7816602597f473b3231032cca5d71a48a
framework = arduino
board = rpipicow
board_build.core = earlephilhower
upload_protocol = cmsis-dap
debug_tool = cmsis-dap ; new picoprobe.uf2's emulate cmsis-dap
; extra_scripts = src/build_bootloader.py
; ldscript_bootloader = lib/BlueSCSI_platform_RP2040/rp2040_btldr.ld
lib_deps =
SdFat=https://github.com/BlueSCSI/SdFat#3447b2eabb6c4d1e22c421b34d077bffecb7f81b
minIni
BlueSCSI_platform_RP2040
SCSI2SD
CUEParser
debug_build_flags =
-O2 -ggdb -g3
; The values can be adjusted down to get a debug build to fit in to SRAM
-DLOGBUFSIZE=1024
-DSCSI2SD_BUFFER_SIZE=57344
-DPREFETCH_BUFFER_SIZE=6144
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
-DPICO_DEFAULT_I2C_SDA_PIN=16
-DPICO_DEFAULT_I2C_SCL_PIN=17
; -DLOGBUFSIZE=8192
; -DPREFETCH_BUFFER_SIZE=6144
; -DSCSI2SD_BUFFER_SIZE=57344
; Experimental Audio build
; Requires separate hardware and overclock.
; For experimentation only, do not use.
[env:BlueSCSI_Pico_Audio]
extends = env:BlueSCSI_Pico
build_flags =
${env:BlueSCSI_Pico.build_flags}
-DENABLE_AUDIO_OUTPUT