-
Notifications
You must be signed in to change notification settings - Fork 7
/
platformio.ini
57 lines (54 loc) · 1.77 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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
; cargo pio init -b pico -f arduino -t thumbv6m-none-eabi
[env]
extra_scripts = pre:platformio.git.py, pre:platformio.patch.py, platformio.cargo.py
rust_lib = usb3sun
[env:pico]
rust_target = thumbv6m-none-eabi
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
board_build.core = earlephilhower
platform_packages =
framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#3.1.1
lib_deps =
https://github.com/adafruit/Adafruit-GFX-Library.git#1.11.5
https://github.com/adafruit/Adafruit_SSD1306.git#2.5.7
https://github.com/adafruit/Adafruit_TinyUSB_Arduino.git#3.1.0
https://github.com/sekigon-gonnoc/Pico-PIO-USB.git#0.5.3
build_flags =
-DSUNK_ENABLE
-DSUNM_ENABLE
; -DSUNK_SNIFFER_ENABLE ; sun keyboard sniffer
; -DWIPE_SETTINGS ; wipe settings on every boot
-DUSB3SUN_HAL_ARDUINO_PICO
-DUSE_TINYUSB
-DCFG_TUSB_CONFIG_FILE=\"${PROJECT_DIR}/tusb_config.h\"
; -DCFG_TUSB_DEBUG=3
; -DDEBUG_RP2040_WIRE
; -DDEBUG_RP2040_SPI
; -DDEBUG_RP2040_CORE
-Wall -Wextra
!./get-version.sh
board_build.f_cpu = 120000000L
board_build.filesystem_size = 64k
; build_type = debug
; debug_tool = cmsis-dap
; upload_protocol = cmsis-dap
[env:linux]
platform = native
build_flags =
-DUSB3SUN_HAL_LINUX_NATIVE
-fsanitize=address
-lasan
-Wall -Wextra
!./get-version.sh
lib_ignore = Adafruit TinyUSB Library