-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
104 lines (95 loc) · 2.48 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
;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
[platformio]
; default_envs = build_RP2040
libdeps_dir = /tmp/libdeps
[env]
framework = arduino
build_flags =
-include "src/GardenControl.h"
-include "src/GardenControlHardware.h"
-D SMALL_GROUPOBJECT
-D GARDENCONTROL
-D MASK_VERSION=0x07B0
; use flash directly
;flash start at 1.5MiB
-D KNX_FLASH_SIZE=0x4000
-D KNX_FLASH_OFFSET=0x180000
-D USERDATA_SAVE_SIZE=1004
;-D KNX_NO_PRINT
; use EEPROM emulation
; -D USE_SAMD_EEPROM_EMULATION
; -D USE_RP2040_EEPROM_EMULATION
; -D USE_RP2040_LARGE_EEPROM_EMULATION
;-D DEBUG_TIMING
;-D LOGIC_TRACE
-Wno-unknown-pragmas
-Wno-switch
; debug timing in knx stack
;monitor_speed = 115200
;monitor_port = COM16
lib_ldf_mode = deep+
; lib_extra_dirs =
; ..
; lib_deps =
; ; Wire
; ; SPI
debug_tool = jlink
debug_build_flags = -O0 -ggdb3
; build_type = debug
; debug_tool = atmel-ice
[RP2040]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#182d833
platform_packages = framework-arduinopico @ https://github.com/earlephilhower/arduino-pico/releases/download/3.6.2/rp2040-3.6.2.zip
board = rpipico
board_build.core = earlephilhower
; configure filesystem size. Default 0 Mbyte.
; board_build.filesystem_size = 1M
build_flags =
${env.build_flags}
-D SERIAL_DEBUG=Serial
; -D USE_RP2040_EEPROM_EMULATION
; -D USE_RP2040_LARGE_EEPROM_EMULATION
-D PIO_FRAMEWORK_ARDUINO_ENABLE_RTTI
-D LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
-O0
build_unflags = -Os
[RP2040_develop]
build_flags =
-D DEBUG_DELAY=10000
[env:build_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
[env:upload_USB_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
upload_protocol = picotool
[env:upload_JLINK_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
upload_protocol = jlink
[env:upload_ATMEL_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
upload_protocol = atmel-ice
#### Release Environments
[env:release_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100