88; Please visit documentation for the other options and examples
99; http://docs.platformio.org/page/projectconf.html
1010
11+ [common]
12+ ; These libraries are used by all builds.
13+ lib_deps =
14+ wizard97/SimplyAtomic@^1.0
15+ adbancroft/avr-fast-shift@^1.1.0
16+ ridiculousfish/libdivide@^5.2.0
17+ frankboesing/FastCRC@^1.41
18+ adbancroft/avr-fast-div@^1.4.0
19+
1120[env:megaatmega2560]
1221platform =atmelavr
1322board =megaatmega2560
1423framework =arduino
1524build_unflags = -Os -std =gnu++11
16- build_flags = -DUSE_LIBDIVIDE -O3 -ffast-math -fshort-enums -funroll-loops -Wall -Wextra -std =c++14
17- ; Note that fp64lib is only used by unit tests. It isn't referenced by the firmware & will be
18- ; ignored.
19- lib_deps = EEPROM, Time, fp64lib, simplyatomic
20- ; test_build_project_src = true
25+ build_flags = -DCRC_BIGTABLES =0 -DUSE_LIBDIVIDE -DAFD_INLINE =0U -O3 -ffast-math -fshort-enums -funroll-loops -Wall -Wextra -std =c++14
26+ lib_deps =
27+ EEPROM
28+ Time
29+ ${common.lib_deps}
30+ ; Note that fp64lib is only used by unit tests. It isn't referenced by the firmware & will be
31+ ; ignored.
32+ fp64lib/fp64lib@^1.1.20
2133debug_tool = simavr
2234test_ignore = test_table3d_native
2335
@@ -53,7 +65,12 @@ test_testing_command =
5365platform =https://github.com/platformio/platform-teensy.git
5466board =teensy35
5567framework =arduino
56- lib_deps = EEPROM, FlexCAN_T4, Time, SimplyAtomic, InternalTemperature
68+ lib_deps =
69+ EEPROM
70+ FlexCAN_T4
71+ Time
72+ InternalTemperature
73+ ${common.lib_deps}
5774test_ignore = test_table3d_native
5875extra_scripts = post:post_extra_script.py
5976
@@ -62,7 +79,12 @@ extra_scripts = post:post_extra_script.py
6279platform =https://github.com/platformio/platform-teensy.git
6380board =teensy36
6481framework =arduino
65- lib_deps = EEPROM, FlexCAN_T4, Time, SimplyAtomic, InternalTemperature
82+ lib_deps =
83+ EEPROM
84+ FlexCAN_T4
85+ Time
86+ InternalTemperature
87+ ${common.lib_deps}
6688test_ignore = test_table3d_native
6789extra_scripts = post:post_extra_script.py
6890
@@ -71,7 +93,12 @@ extra_scripts = post:post_extra_script.py
7193platform =https://github.com/platformio/platform-teensy.git
7294board =teensy41
7395framework =arduino
74- lib_deps = EEPROM, FlexCAN_T4, Time, SimplyAtomic, InternalTemperature
96+ lib_deps =
97+ EEPROM
98+ FlexCAN_T4
99+ Time
100+ InternalTemperature
101+ ${common.lib_deps}
75102test_ignore = test_table3d_native
76103build_flags = -DTEENSY_INIT_USB_DELAY_AFTER =40
77104extra_scripts = post:post_extra_script.py
@@ -82,7 +109,11 @@ platform = ststm32
82109framework = arduino
83110board = black_f407ve
84111; RTC library fixed to 1.2.0, because in newer than that the RTC fails to keep up time. At least up to 1.3.7 version
85- lib_deps = stm32duino/STM32duino RTC @ 1.2.0, greiman/SdFat, SimplyAtomic, elapsedMillis
112+ lib_deps =
113+ stm32duino/STM32duino RTC @ 1.2.0
114+ greiman/SdFat
115+ elapsedMillis
116+ ${common.lib_deps}
86117board_build.core = stm32
87118build_flags = -DUSE_LIBDIVIDE -std =c++14 -UBOARD_MAX_IO_PINS -DENABLE_HWSERIAL2 -DENABLE_HWSERIAL3 -DUSBCON -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_CAN_MODULE_ENABLED -DSERIAL_TX_BUFFER_SIZE =128 -DSERIAL_RX_BUFFER_SIZE =128
88119upload_protocol = dfu
@@ -122,7 +153,9 @@ build_flags = ${env:black_F407VE.build_flags} -DFRAM_AS_EEPROM
122153platform = ststm32
123154framework = arduino
124155board = blackpill_f401cc
125- lib_deps = stm32duino/STM32duino RTC @ 1.2.0, SimplyAtomic
156+ lib_deps =
157+ stm32duino/STM32duino RTC @ 1.2.0
158+ ${common.lib_deps}
126159board_build.core = stm32
127160build_flags = -DUSE_LIBDIVIDE -std =c++14 -UBOARD_MAX_IO_PINS -DUSBCON -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_DAC_MODULE_DISABLED -DHAL_ETH_MODULE_DISABLED -DHAL_SD_MODULE_DISABLED -DHAL_QSPI_MODULE_DISABLED
128161upload_protocol = dfu
@@ -134,7 +167,9 @@ monitor_speed = 115200
134167platform = ststm32
135168framework = arduino
136169board = blackpill_f411ce
137- lib_deps = stm32duino/STM32duino RTC @ 1.2.0, SimplyAtomic
170+ lib_deps =
171+ stm32duino/STM32duino RTC @ 1.2.0
172+ ${common.lib_deps}
138173board_build.core = stm32
139174build_flags = -DUSE_LIBDIVIDE -O3 -std =c++14 -UBOARD_MAX_IO_PINS
140175upload_protocol = dfu
@@ -146,13 +181,45 @@ monitor_speed = 115200
146181platform = ststm32
147182framework = arduino
148183board = blackpill_f411ce
149- lib_deps = stm32duino/STM32duino RTC @ 1.2.0, SimplyAtomic
184+ lib_deps =
185+ stm32duino/STM32duino RTC @ 1.2.0
186+ ${common.lib_deps}
150187board_build.core = stm32
151188build_flags = -DUSE_LIBDIVIDE -O3 -std =c++14 -UBOARD_MAX_IO_PINS -DUSBCON -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC
152189upload_protocol = dfu
153190debug_tool = stlink
154191monitor_speed = 115200
155192
193+ [env:bluepill_f103c8]
194+ platform = ststm32
195+ framework = arduino
196+ ; framework-arduinoststm32
197+ board = bluepill_f103c8_128k
198+ lib_deps =
199+ EEPROM
200+ stm32duino/STM32duino RTC @ 1.2.0
201+ ${common.lib_deps}
202+ build_flags = -DUSE_LIBDIVIDE -fpermissive -std =gnu++11 -Os -DCORE_STM32_OFFICIAL -UBOARD_MAX_IO_PINS
203+
204+ ; SAMD21
205+ [env:samd21]
206+ platform = atmelsam
207+ framework = arduino
208+ board = zeroUSB
209+ build_flags = -DUSE_LIBDIVIDE -fpermissive -std =gnu++11
210+ upload_protocol = sam-ba
211+
212+ ; SAME51
213+ [env:same51]
214+ platform = atmelsam
215+ framework = arduino
216+ board = adafruit_feather_m4_can
217+ build_flags = -DUSE_LIBDIVIDE -fpermissive -std =gnu++11
218+ upload_protocol = sam-ba
219+
220+ [env:custom_monitor_speedrate]
221+ monitor_speed = 115200
222+
156223[platformio]
157224src_dir =speeduino
158225default_envs = megaatmega2560
0 commit comments