-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
137 lines (115 loc) · 2.44 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
; 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 = espressif8266_release
;default_envs = mbed_rp2040_release
;default_envs = uno_release
[common]
;build_unflags =
;-std=c++11
;-std=gnu++11
;-std=c++14
;-std=gnu++14
build_src_flags =
-std=c++17
-std=gnu++17
; Only used when using raspberry pico
picoprobe_tools_path = B:/Utils/Picoprobe
framework = arduino
;
; MBed rp2040
;
[mbed_rp2040]
extends = common
platform = raspberrypi
board = pico
[env:mbed_rp2040_debug]
extends = mbed_rp2040
build_type = debug
[env:mbed_rp2040_release]
extends = mbed_rp2040
build_type = release
;
; earlephilhower's Arduino core
;
[earlephilhower]
extends = common
board = pico
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
upload_protocol = custom
upload_command = ${common.picoprobe_tools_path}/upload_openocd.bat "$BUILD_DIR/${PROGNAME}.elf" "$PROJECT_DIR"
debug_tool = custom
debug_server =
${common.picoprobe_tools_path}/debug_openocd.bat
debug_port = localhost:3333
; Examples 1: disable initial breakpoint
debug_init_break =
debug_load_mode = modified
[env:earlphilhower_debug]
extends = earlephilhower
build_type = debug
[env:earlphilhower_release]
extends = earlephilhower
build_type = release
;
; Mega2560
;
[mega2560]
extends = common
platform = atmelavr
board = megaatmega2560
monitor_speed = 115200
[env:mega2560_debug]
extends = mega2560
build_type = debug
[env:mega2560_release]
extends = mega2560
build_type = release
;
; Uno
;
[uno]
extends = common
platform = atmelavr
board = uno
monitor_speed = 115200
[env:uno_debug]
extends = uno
build_type = debug
[env:uno_release]
extends = uno
build_type = release
;
; espressif8266
;
[espressif8266]
extends = common
platform = espressif8266
board = huzzah
[env:espressif8266_debug]
extends = espressif8266
build_type = debug
[env:espressif8266_release]
extends = espressif8266
build_type = release
;
; espressif32
;
[espressif32]
extends = common
platform = espressif32
board = featheresp32
[env:espressif32_debug]
extends = espressif32
build_type = debug
[env:espressif32_release]
extends = espressif32
build_type = release