-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
119 lines (95 loc) · 2.42 KB
/
platformio.ini
File metadata and controls
119 lines (95 loc) · 2.42 KB
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
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html
#
# A sign `#` at the beginning of the line indicates a comment
# Comment lines are ignored.
[library]
name = ArduinoLibrarySkeleton
[platformio]
default_envs =
native
uno
; nanoatmega328
; mega2560
; nodemcu
d1_mini
; esp32dev
lolin32
bluepill
[native_base]
platform = native
lib_deps = ${env.lib_deps}
ArduinoFake ; ArduinoFake is needed for testing Arduino libraries in native environment
test_ignore = test_*_gtest
[atmega_base]
platform = atmelavr
framework = arduino
debug_tool = avr-stub
lib_deps = ${env.lib_deps}
jdolinay/avr-debugger @ ~1.5 ; needed for debugging via serial interface
test_ignore = test_*_gtest
[esp8266_base]
platform = espressif8266
framework = arduino
debug_tool = esp-prog
lib_deps = ${env.lib_deps}
build_unflags = ${env.build_unflags} -pedantic ; -pedantic does not work because of the framework
test_ignore = test_*_gtest
[esp32_base]
platform = espressif32
framework = arduino
debug_tool = esp-prog
lib_deps = ${env.lib_deps}
build_unflags = ${env.build_unflags} -pedantic ; -pedantic does not work because of the framework
test_ignore = test_*_gtest
[stm32_base]
platform = ststm32
framework = arduino
debug_tool = stlink
lib_deps = ${env.lib_deps}
build_unflags = ${env.build_unflags} -pedantic ; -pedantic does not work because of the framework
test_ignore = test_*_gtest
[env]
build_flags =
-Wall -Werror -pedantic -std=gnu++17 -D__LIBRARY_NAME__=\"${library.name}\"
build_unflags =
-std=gnu++11
monitor_speed =
115200
debug_init_break =
tbreak setup
lib_deps =
;
extra_scripts = pre:extra_script.py ; needed for creating the compile_commands.json file for sonarQube analysis
[env:native]
extends = native_base
lib_compat_mode = off ; for beeing able to use arduino libraries in native environment
[env:uno]
extends = atmega_base
board = uno
[env:nanoatmega328]
extends = atmega_base
board = nanoatmega328
[env:mega2560]
extends = atmega_base
board = megaatmega2560
[env:nodemcu]
extends = esp8266_base
board = nodemcuv2
[env:d1_mini]
extends = esp8266_base
board = d1_mini
[env:esp32dev]
extends = esp32_base
board = esp32dev
[env:lolin32]
extends = esp32_base
board = lolin32
[env:blackpill]
extends = stm32_base
board = blackpill_f401ce
[env:bluepill]
extends = stm32_base
board = bluepill_f103c8