-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
platformio.ini
116 lines (101 loc) · 3.17 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
; 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
; http://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = hw_v1_stm32f103c8
; Shared options
[env]
build_flags =
-D FIXMATH_NO_ROUNDING
-D FIXMATH_NO_OVERFLOW
-D ETL_NO_PROFILE_HEADER
lib_deps =
;libfixmath=https://github.com/PetteriAimonen/libfixmath/archive/66365d58887df65df8f3047474e5973f885f13de.zip
;Embedded Template Library@~18.14.0
https://github.com/PetteriAimonen/libfixmath/archive/66365d58887df65df8f3047474e5973f885f13de.zip
https://github.com/ETLCPP/etl/archive/18.15.5.zip
[env:hw_v2_stm32f042f6_stlink]
platform = ststm32@^11.0.0
board = our_genericSTM32F042F6
debug_tool = stlink
extra_scripts = support/stm32_build_extra.py
board_build.ldscript = hal/stm32f042f6/stm32cube/STM32F042F6Px_FLASH.ld
build_flags =
${env.build_flags}
-g
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/stm32f042f6')]))"
; F0 cores have only 32-bit mul & no div. This def improves perf a bit.
-D FIXMATH_NO_64BIT
; This PCB has reversed triac control
-D REVERSE_TRIAC
src_filter =
+<*>
+<../hal/stm32f042f6/>
[env:hw_v2_stm32f042f6_usb]
platform = [email protected]
extends = env:hw_v2_stm32f042f6_stlink
upload_protocol = dfu
[env:hw_v2_dev_stm32f072cb_stlink]
platform = ststm32@^11.0.0
board = our_genericSTM32F072CB
debug_tool = stlink
extra_scripts = support/stm32_build_extra.py
board_build.ldscript = hal/stm32f072cb/stm32cube/STM32F072CBTx_FLASH.ld
build_flags =
${env.build_flags}
-g
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/stm32f072cb')]))"
; F0 cores have only 32-bit mul & no div. This def improves perf a bit.
-D FIXMATH_NO_64BIT
; This PCB has reversed volage sensor & triac control
-D REVERSE_VOLTAGE
-D REVERSE_TRIAC
src_build_flags =
-Wall
;-Werror
-Wdouble-promotion
-Wconversion
;-Wextra
-Wclobbered
-Wdeprecated
-Wempty-body
;-Wignored-qualifiers
;-Wimplicit-fallthrough=3
-Wmissing-field-initializers
-Wsign-compare
;-Wredundant-decls
-Wtype-limits
-Wuninitialized
-Wshift-negative-value
-Wunused-parameter
-Wunused-but-set-parameter
src_filter =
+<*>
+<../hal/stm32f072cb/>
[env:hw_v2_dev_stm32f072cb_usb]
platform = ststm32@^11.0.0
extends = env:hw_v2_dev_stm32f072cb_stlink
upload_protocol = dfu
[env:test_native]
platform = native
[env:hw_v1_stm32f103c8]
platform = ststm32@^11.0.0
board = genericSTM32F103C8
extra_scripts = support/stm32_build_extra.py
board_build.ldscript = hal/stm32f103c8/stm32cube/STM32F103C8Tx_FLASH.ld
build_flags =
${env.build_flags}
-g
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/stm32f103c8')]))"
src_filter =
+<*>
+<../hal/stm32f103c8/>