forked from OpenKNX/OAM-LogicModule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
173 lines (148 loc) · 3.81 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
;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
libdeps_dir = /tmp/libdeps
[env]
framework = arduino
build_flags =
; optimize knx stack
-D SMALL_GROUPOBJECT
-D LOGICMODULE
-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
; use EEPROM emulation
;-D DEBUG_TIMING
;-D LOGIC_TRACE
-Wno-unknown-pragmas
-Wno-switch
; debug timing in knx stack
monitor_speed = 115200
lib_ldf_mode = deep+
lib_extra_dirs =
${PROJECT_DIR}\..
debug_tool = jlink
debug_build_flags = -O0 -ggdb3
debug_extra_cmds =
set output-radix 16
[RP2040]
platform = https://github.com/mumpf/platform-raspberrypi.git
board = pico
board_build.core = earlephilhower
; configure filesystem size. Default 0 Mbyte.
; board_build.filesystem_size = 1M
; inject core package.. not yet registered with PlatformIO
; registry, so pull working version directly from git / download page.
; note that download link for toolchain is specific for OS. see https://github.com/earlephilhower/pico-quick-toolchain/releases.
platform_packages =
mumpf/framework-arduinopico@https://github.com/mumpf/arduino-pico.git
maxgerhardt/toolchain-pico@https://github.com/earlephilhower/pico-quick-toolchain/releases/download/1.3.2-a/x86_64-w64-mingw32.arm-none-eabi-9d55fd1.220202.zip
; maxgerhardt/framework-arduinopico@file://c:\users\d019748\platformio\arduino-pico
build_flags =
${env.build_flags}
-D SERIAL_DEBUG=Serial
; -D USE_RP2040_EEPROM_EMULATION
; -D USE_RP2040_LARGE_EEPROM_EMULATION
-frtti
; lib_deps =
; adafruit/Adafruit SleepyDog Library @ ^1.4.0
; ; Wire
; ; SPI
[SAMD]
platform = atmelsam
board = zeroUSB
build_flags =
${env.build_flags}
-D SERIAL_DEBUG=SerialUSB
; use EEPROM emulation
; -D USE_SAMD_EEPROM_EMULATION
; -D CRYSTALLESS
; -D WATCHDOG
lib_deps =
adafruit/Adafruit SleepyDog Library @ 1.4.0
; Wire
; SPI
[RP2040_develop]
build_flags =
-D DEBUG_DELAY=10000
; -D BOARD_MASIFI_PICO
-D BOARD_MASIFI_HFPM_DEVEL
[SAMD_develop]
build_flags =
-D DEBUG_DELAY=10000
-D BOARD_MASIFI_V31
[env:build_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
[env:build_SAMD]
extends = SAMD
build_flags =
${SAMD.build_flags}
${SAMD_develop.build_flags}
[env:upload_USB_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
upload_protocol = picotool
[env:upload_USB_SAMD]
extends = SAMD
build_flags =
${SAMD.build_flags}
${SAMD_develop.build_flags}
upload_protocol = sam-ba
[env:upload_JLINK_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
upload_protocol = jlink
[env:upload_JLINK_SAMD]
extends = SAMD
build_flags =
${SAMD.build_flags}
${SAMD_develop.build_flags}
upload_protocol = jlink
#### Release Environments
[env:release_SAMD_v31]
extends = SAMD
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V31
[env:release_SAMD_v30]
extends = SAMD
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V3
[env:release_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_HFPM_DEVEL
### This is an example for enduser compiled environment
[env:enduser]
extends = SAMD
;extends = RP2040
upload_protocol = sam-ba
;upload_protocol = picotool
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V2
; -D BOARD_MASIFI_HFPM_DEVEL