2017-02-06 01:56:46 -08:00
|
|
|
; 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
|
|
|
|
|
|
|
|
[env:megaatmega2560]
|
|
|
|
platform=atmelavr
|
|
|
|
board=megaatmega2560
|
|
|
|
framework=arduino
|
|
|
|
build_unflags = -Os
|
2022-09-14 19:16:14 -07:00
|
|
|
build_flags = -DUSE_LIBDIVIDE -O3 -ffast-math -fshort-enums -funroll-loops -Wall -Wextra -std=c99
|
2023-11-05 14:10:08 -08:00
|
|
|
; Note that fp64lib is only used by unit tests. It isn't referenced by the firmware & will be
|
|
|
|
; ignored.
|
|
|
|
lib_deps = EEPROM, Time, fp64lib
|
2022-06-01 00:06:44 -07:00
|
|
|
;test_build_project_src = true
|
2022-05-24 18:02:55 -07:00
|
|
|
test_build_src = yes
|
2020-05-20 22:42:02 -07:00
|
|
|
debug_tool = simavr
|
2021-12-09 01:40:31 -08:00
|
|
|
test_ignore = test_table3d_native
|
2020-05-20 22:42:02 -07:00
|
|
|
|
2023-10-10 14:21:47 -07:00
|
|
|
;This environment is the same as the above, however compiles for 6 channels of fuel and 3 channels of ignition
|
|
|
|
[env:megaatmega2560-6-3]
|
|
|
|
extends = env:megaatmega2560
|
2024-05-09 15:04:13 -07:00
|
|
|
build_flags = ${env:megaatmega2560.build_flags} -DINJ_CHANNELS=6 -DIGN_CHANNELS=3
|
2023-10-10 14:21:47 -07:00
|
|
|
|
|
|
|
;As the above, however compiles for 8 channels of fuel and only a single ignition channel
|
|
|
|
[env:megaatmega2560-8-1]
|
|
|
|
extends = env:megaatmega2560
|
2024-05-09 15:04:13 -07:00
|
|
|
build_flags = ${env:megaatmega2560.build_flags} -DINJ_CHANNELS=8 -DIGN_CHANNELS=1
|
2023-10-10 14:21:47 -07:00
|
|
|
|
2020-05-20 22:42:02 -07:00
|
|
|
[env:megaatmega2561]
|
2023-10-10 14:21:47 -07:00
|
|
|
extends = env:megaatmega2560
|
2020-05-20 23:24:13 -07:00
|
|
|
board=ATmega2561
|
2017-02-06 01:56:46 -08:00
|
|
|
|
|
|
|
[env:teensy35]
|
2021-07-21 18:57:33 -07:00
|
|
|
;platform=teensy
|
|
|
|
platform=https://github.com/platformio/platform-teensy.git
|
2017-02-06 01:56:46 -08:00
|
|
|
board=teensy35
|
|
|
|
framework=arduino
|
2023-04-25 22:54:15 -07:00
|
|
|
lib_deps = EEPROM, FlexCAN_T4, Time
|
|
|
|
test_build_src = yes
|
|
|
|
test_ignore = test_table3d_native
|
2023-10-06 14:25:26 -07:00
|
|
|
extra_scripts = post:post_extra_script.py
|
2017-02-06 01:56:46 -08:00
|
|
|
|
2021-01-17 04:16:09 -08:00
|
|
|
[env:teensy36]
|
2021-07-21 18:57:33 -07:00
|
|
|
;platform=teensy
|
|
|
|
platform=https://github.com/platformio/platform-teensy.git
|
2021-01-17 04:16:09 -08:00
|
|
|
board=teensy36
|
2019-12-14 14:55:46 -08:00
|
|
|
framework=arduino
|
2023-04-25 22:54:15 -07:00
|
|
|
lib_deps = EEPROM, FlexCAN_T4, Time
|
|
|
|
test_build_src = yes
|
|
|
|
test_ignore = test_table3d_native
|
2019-12-14 14:55:46 -08:00
|
|
|
|
2020-07-13 20:57:36 -07:00
|
|
|
[env:teensy41]
|
2021-07-21 18:57:33 -07:00
|
|
|
;platform=teensy
|
|
|
|
platform=https://github.com/platformio/platform-teensy.git
|
2020-07-13 20:57:36 -07:00
|
|
|
board=teensy41
|
2019-08-21 00:42:01 -07:00
|
|
|
framework=arduino
|
2021-07-21 18:57:33 -07:00
|
|
|
lib_deps = EEPROM, FlexCAN_T4, Time
|
2023-04-25 22:54:15 -07:00
|
|
|
test_build_src = yes
|
|
|
|
test_ignore = test_table3d_native
|
2019-08-21 00:42:01 -07:00
|
|
|
|
2019-03-04 04:45:33 -08:00
|
|
|
;STM32 Official core
|
2019-01-25 23:34:20 -08:00
|
|
|
[env:black_F407VE]
|
2020-02-02 14:06:14 -08:00
|
|
|
platform = ststm32
|
|
|
|
;platform = https://github.com/platformio/platform-ststm32.git
|
2019-01-25 23:34:20 -08:00
|
|
|
framework = arduino
|
2019-03-07 03:47:22 -08:00
|
|
|
;board = genericSTM32F407VET6
|
|
|
|
board = black_f407ve
|
2023-12-10 18:31:39 -08:00
|
|
|
; 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
|
|
|
|
lib_deps = stm32duino/STM32duino RTC @ 1.2.0, greiman/SdFat
|
2019-03-07 03:47:22 -08:00
|
|
|
board_build.core = stm32
|
2023-05-18 00:37:10 -07:00
|
|
|
build_flags = -DUSE_LIBDIVIDE -std=gnu++11 -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
|
2020-05-05 22:22:48 -07:00
|
|
|
upload_protocol = dfu
|
2020-04-17 15:04:03 -07:00
|
|
|
debug_tool = stlink
|
2020-05-05 22:22:48 -07:00
|
|
|
monitor_speed = 115200
|
2017-03-22 23:19:18 -07:00
|
|
|
|
2020-12-01 15:52:13 -08:00
|
|
|
;STM32 Official core
|
2021-04-14 17:26:58 -07:00
|
|
|
[env:BlackPill_F401CC]
|
2020-12-01 15:52:13 -08:00
|
|
|
platform = ststm32
|
|
|
|
framework = arduino
|
|
|
|
board = blackpill_f401cc
|
2023-12-10 18:31:39 -08:00
|
|
|
lib_deps = stm32duino/STM32duino RTC @ 1.2.0
|
2020-12-01 15:52:13 -08:00
|
|
|
board_build.core = stm32
|
2022-09-14 19:16:14 -07:00
|
|
|
build_flags = -DUSE_LIBDIVIDE -std=gnu++11 -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
|
2021-03-22 14:33:03 -07:00
|
|
|
upload_protocol = dfu
|
|
|
|
debug_tool = stlink
|
|
|
|
monitor_speed = 115200
|
|
|
|
|
|
|
|
;STM32 Official core
|
2021-04-14 17:26:58 -07:00
|
|
|
[env:BlackPill_F411CE_UART]
|
|
|
|
platform = ststm32
|
|
|
|
framework = arduino
|
|
|
|
board = blackpill_f411ce
|
2023-12-10 18:31:39 -08:00
|
|
|
lib_deps = stm32duino/STM32duino RTC @ 1.2.0
|
2021-04-14 17:26:58 -07:00
|
|
|
board_build.core = stm32
|
2022-09-14 19:16:14 -07:00
|
|
|
build_flags = -DUSE_LIBDIVIDE -O3 -std=gnu++11 -UBOARD_MAX_IO_PINS
|
2021-04-14 17:26:58 -07:00
|
|
|
upload_protocol = dfu
|
|
|
|
debug_tool = stlink
|
|
|
|
monitor_speed = 115200
|
|
|
|
|
|
|
|
;STM32 Official core
|
|
|
|
[env:BlackPill_F411CE_USB]
|
2021-03-22 14:33:03 -07:00
|
|
|
platform = ststm32
|
|
|
|
framework = arduino
|
|
|
|
board = blackpill_f411ce
|
2023-12-10 18:31:39 -08:00
|
|
|
lib_deps = stm32duino/STM32duino RTC @ 1.2.0
|
2021-03-22 14:33:03 -07:00
|
|
|
board_build.core = stm32
|
2022-09-14 19:16:14 -07:00
|
|
|
build_flags = -DUSE_LIBDIVIDE -O3 -std=gnu++11 -UBOARD_MAX_IO_PINS -DUSBCON -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC
|
2020-12-01 15:52:13 -08:00
|
|
|
upload_protocol = dfu
|
|
|
|
debug_tool = stlink
|
|
|
|
monitor_speed = 115200
|
|
|
|
|
2017-03-22 23:19:18 -07:00
|
|
|
[env:bluepill_f103c8]
|
|
|
|
platform = ststm32
|
|
|
|
framework = arduino
|
|
|
|
; framework-arduinoststm32
|
2020-02-18 13:54:51 -08:00
|
|
|
board = bluepill_f103c8_128k
|
2023-12-10 18:31:39 -08:00
|
|
|
lib_deps = EEPROM, stm32duino/STM32duino RTC @ 1.2.0
|
2022-09-14 19:16:14 -07:00
|
|
|
;build_flags = -DUSE_LIBDIVIDE -fpermissive -std=gnu++11 -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-Map,output.map
|
|
|
|
build_flags = -DUSE_LIBDIVIDE -fpermissive -std=gnu++11 -Os -DCORE_STM32_OFFICIAL -UBOARD_MAX_IO_PINS
|
2019-01-17 01:47:19 -08:00
|
|
|
|
|
|
|
;SAMD21
|
|
|
|
[env:samd21]
|
|
|
|
platform = atmelsam
|
|
|
|
framework = arduino
|
|
|
|
board = zeroUSB
|
2021-03-12 13:43:51 -08:00
|
|
|
;lib_deps = cmaglie/FlashStorage @ ^1.0.0
|
2022-09-14 19:16:14 -07:00
|
|
|
;build_flags = -DUSE_LIBDIVIDE -fpermissive -std=gnu++11 -DUSE_SPI_EEPROM
|
|
|
|
build_flags = -DUSE_LIBDIVIDE -fpermissive -std=gnu++11
|
2021-03-12 13:43:51 -08:00
|
|
|
upload_protocol = sam-ba
|
|
|
|
|
|
|
|
;SAME51
|
|
|
|
[env:same51]
|
|
|
|
platform = atmelsam
|
|
|
|
framework = arduino
|
|
|
|
board = adafruit_feather_m4_can
|
|
|
|
;lib_deps = cmaglie/FlashStorage @ ^1.0.0
|
2022-09-14 19:16:14 -07:00
|
|
|
;build_flags = -DUSE_LIBDIVIDE -fpermissive -std=gnu++11 -DUSE_SPI_EEPROM
|
|
|
|
build_flags = -DUSE_LIBDIVIDE -fpermissive -std=gnu++11
|
2019-01-17 01:47:19 -08:00
|
|
|
upload_protocol = sam-ba
|
|
|
|
|
2019-12-14 14:55:46 -08:00
|
|
|
[env:custom_monitor_speedrate]
|
|
|
|
monitor_speed = 115200
|
|
|
|
|
2017-02-06 01:56:46 -08:00
|
|
|
[platformio]
|
|
|
|
src_dir=speeduino
|
2019-10-14 22:56:41 -07:00
|
|
|
default_envs = megaatmega2560
|
2024-05-09 15:04:13 -07:00
|
|
|
; local.ini is ignored via .gitignore
|
|
|
|
; This allows developers to make private/local PIO configuration changes without
|
|
|
|
; triggering Git changes in their dev tooling (E.g. VS Code)
|
|
|
|
extra_configs = local.ini
|
2017-02-07 20:40:44 -08:00
|
|
|
;The following lines are for testing / experimentation only. Comment the line above to try them out
|
2019-10-14 22:56:41 -07:00
|
|
|
;default_envs = black_F407VE
|
2020-02-27 15:18:37 -08:00
|
|
|
;default_envs = teensy35
|
|
|
|
;default_envs = teensy40
|
2017-02-07 20:40:44 -08:00
|
|
|
;env_default = LaunchPad_tm4c1294ncpdt
|
2017-03-22 23:34:10 -07:00
|
|
|
;env_default = genericSTM32F103RB
|
2017-03-22 23:19:18 -07:00
|
|
|
;env_default = bluepill_f103c8
|
2019-12-14 14:55:46 -08:00
|
|
|
|
2021-12-09 01:40:31 -08:00
|
|
|
[env:native]
|
|
|
|
platform = native
|
2022-09-14 19:16:14 -07:00
|
|
|
build_flags = -DUSE_LIBDIVIDE -std=gnu++11
|
2021-12-22 20:07:38 -08:00
|
|
|
debug_build_flags = -std=gnu++11 -O0 -g3
|
2022-09-14 19:16:14 -07:00
|
|
|
test_ignore = test_misc2, test_misc, test_decoders, test_schedules, test_fuel
|
2021-12-09 01:40:31 -08:00
|
|
|
debug_test = test_table3d_native
|
|
|
|
build_type = debug
|