-
Notifications
You must be signed in to change notification settings - Fork 5
/
platformio.ini
132 lines (120 loc) · 2.49 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
; 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 =
nanoatmega328new
nanoatmega328
uno
mega2560
pro16MHzatmega328
pro8MHzatmega328
Nucleo-F411RE
Nucleo-F412ZG
; SAMD21
bluepill_f103c8
src_dir = .
include_dir = .
[env]
build_flags =
-Wall
[env:nanoatmega328new]
platform = atmelavr
board = nanoatmega328new
framework = arduino
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:pro16MHzatmega328]
platform = atmelavr
board = pro16MHzatmega328
framework = arduino
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:pro8MHzatmega328]
platform = atmelavr
board = pro8MHzatmega328
framework = arduino
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:uno]
platform = atmelavr
board = uno
framework = arduino
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:mega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:Nucleo-F411RE]
platform = ststm32
board = nucleo_f411re
framework = arduino
upload_protocol = stlink
build_flags =
${env.build_flags}
-std=c++17 -Os -g2
monitor_speed = 115200
monitor_echo = yes
[env:Nucleo-F412ZG]
platform = ststm32
board = nucleo_f412zg
framework = arduino
upload_protocol = stlink
build_flags =
${env.build_flags}
-std=c++17 -Os -g2
monitor_speed = 115200
monitor_echo = yes
build_src_filter = +<*> -<.git/> -<.svn/> -<f412zg_variant_files/>
[env:SAMD21]
platform = atmelsam
board = zeroUSB
framework = arduino
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
upload_protocol = stlink
build_flags =
${env.build_flags}
-std=c++17 -Os -g2
-DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-DUSBCON
-DHAL_PCD_MODULE_ENABLED
-DUSBD_VID=0x0483
-DUSBD_PID=0x5740
-DUSB_MANUFACTURER="Unknown"
-DUSB_PRODUCT="\"BLUEPILL_F103C8\""
monitor_speed = 115200
monitor_echo = yes