-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathplatformio.ini
165 lines (132 loc) · 2.83 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
; 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
; Common configuration
[platformio]
src_dir = wasm_vm
[env]
framework = arduino
monitor_speed = 115200
lib_deps = Wasm3
src_build_flags =
-Wno-unused-function -Wno-unused-variable -Wno-unused-parameter
-Wno-missing-field-initializers
; Device-specific configuration
[env:ESP32]
platform = espressif32
board = esp32dev
board_build.f_cpu = 240000000L
src_build_flags =
${env.src_build_flags}
-DLED_PIN=19
-DESP32
-O3 -flto
[env:ESP8266]
platform = espressif8266
board = nodemcuv2
board_build.f_cpu = 160000000L
upload_speed = 460800
src_build_flags =
${env.src_build_flags}
-DLED_PIN=13
-DESP8266 -Dd_m3FixedHeap=0x6000
-O3 -flto
[env:AdafruitPyBadge]
platform = atmelsam
board = adafruit_pybadge_m4
src_build_flags =
${env.src_build_flags}
-DLED_PIN=13
-O3 -flto
#build_flags =
# -Dd_m3LogNativeStack=1
# -Dd_m3LogOutput=1
# -Dd_m3VerboseLogs=1
[env:MAIX]
platform = kendryte210
board = sipeed-maix-one-dock
src_build_flags =
${env.src_build_flags}
-DLED_PIN=13
-O3 -flto
build_flags =
-DOVERRIDE_PRINTF
-Dd_m3Use32BitSlots=0
-Dd_m3VerboseLogs=1
-Dd_m3LogNativeStack=1
-Dd_m3LogOutput=1
-Dd_m3LogParse=1
-Dd_m3LogModule=1
-Dd_m3LogCompile=1
-Dd_m3LogEmit=1
-Dd_m3LogExec=1
[env:Arduino101]
platform = intel_arc32
board = genuino101
src_build_flags =
${env.src_build_flags}
-DLED_PIN=13
-Os -flto
[env:MKR1000]
platform = atmelsam
board = mkr1000USB
src_build_flags =
${env.src_build_flags}
-DLED_PIN=6
-O3 -flto
[env:NucleoWB55RG]
platform = ststm32
board = nucleo_wb55rg_p
upload_protocol = mbed
src_build_flags =
${env.src_build_flags}
-DLED_PIN=PB5
-O3 -flto
[env:BluePill]
platform = ststm32
board = bluepill_f103c8
upload_protocol = stlink
src_build_flags =
${env.src_build_flags}
-DLED_PIN=PC13
-Os -flto
[env:TinyBLE]
platform = nordicnrf51
board = seeedTinyBLE
src_build_flags =
${env.src_build_flags}
-DLED_PIN=23
-Os -flto
[env:Teensy31]
platform = teensy
board = teensy31
upload_protocol = teensy-cli
src_build_flags =
${env.src_build_flags}
-DLED_PIN=13
-O3 -flto
[env:Teensy40]
platform = teensy
board = teensy40
upload_protocol = teensy-cli
src_build_flags =
${env.src_build_flags}
-DLED_PIN=13
-O3 -flto
# d_m3SkipMemoryBoundsCheck was needed here,
# as 64-bit operations seem to be broken on AVR
[env:WildFireV3]
platform = atmelavr
board = wildfirev3
src_build_flags =
${env.src_build_flags}
-DLED_PIN=6
-Dd_m3SkipMemoryBoundsCheck=1
-Dd_m3CodePageAlignSize=512
-Os -flto