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
|
2019-12-14 14:55:46 -08:00
|
|
|
build_flags = -O3 -ffast-math -Wall -Wextra -std=c99
|
2017-02-06 01:56:46 -08:00
|
|
|
lib_deps = EEPROM
|
2020-01-23 16:31:39 -08:00
|
|
|
test_build_project_src = true
|
2017-02-06 01:56:46 -08:00
|
|
|
|
|
|
|
[env:teensy35]
|
|
|
|
platform=teensy
|
|
|
|
board=teensy35
|
|
|
|
framework=arduino
|
2020-01-12 18:14:00 -08:00
|
|
|
lib_deps = EEPROM, FlexCAN, SD
|
2017-02-06 01:56:46 -08:00
|
|
|
|
2019-12-14 14:55:46 -08:00
|
|
|
[env:DropBearT]
|
|
|
|
platform=teensy
|
|
|
|
board=teensy35
|
|
|
|
framework=arduino
|
2020-01-12 18:14:00 -08:00
|
|
|
lib_deps = EEPROM, FlexCAN, SD
|
|
|
|
build_flags = -DUSE_MC33810 -DUSE_SPI_EEPROM
|
2019-12-14 14:55:46 -08:00
|
|
|
|
2019-08-21 00:42:01 -07:00
|
|
|
[env:teensy40]
|
|
|
|
platform=teensy
|
|
|
|
board=teensy40
|
|
|
|
framework=arduino
|
|
|
|
lib_deps = EEPROM ;Needs FlexCAN added, but the lib is currently broken for Teensy4
|
|
|
|
|
2017-06-02 19:10:57 -07:00
|
|
|
;Not currently working
|
|
|
|
;[env:LaunchPad_tm4c1294ncpdt]
|
|
|
|
;platform = titiva
|
|
|
|
;framework = energia
|
|
|
|
;board = lptm4c1294ncpdt
|
|
|
|
;lib_deps = EEPROM
|
2017-02-07 20:40:44 -08:00
|
|
|
|
2017-03-22 23:34:10 -07:00
|
|
|
[env:genericSTM32F103RB]
|
2019-01-26 14:21:28 -08:00
|
|
|
platform = ststm32@~4.5.0
|
|
|
|
framework = arduino
|
|
|
|
board = genericSTM32F103RB
|
|
|
|
lib_deps = EEPROM
|
2019-03-07 03:47:22 -08:00
|
|
|
build_flags = -fpermissive -std=gnu++11 -DCORE_STM32_OFFICIAL
|
2019-01-26 14:21:28 -08:00
|
|
|
|
|
|
|
[env:genericSTM32F103RB_STM32GENERIC]
|
2019-01-25 23:34:20 -08:00
|
|
|
;platform = ststm32@~4.5.0
|
|
|
|
platform = ststm32
|
2017-02-07 20:40:44 -08:00
|
|
|
framework = arduino
|
|
|
|
; framework-arduinoststm32
|
2017-03-22 23:34:10 -07:00
|
|
|
board = genericSTM32F103RB
|
2019-01-25 23:34:20 -08:00
|
|
|
lib_deps = EEPROM, HardwareTimer, Flash_STM32
|
|
|
|
build_flags = -fpermissive -std=gnu++11 -UBOARD_NR_GPIO_PINS -DUSE_STM32GENERIC -DMENU_USB_SERIAL
|
|
|
|
|
2019-03-04 04:45:33 -08:00
|
|
|
;STM32 Official core
|
2019-01-25 23:34:20 -08:00
|
|
|
[env:black_F407VE]
|
|
|
|
;platform = ststm32@~4.5.0
|
2019-10-01 10:25:46 -07:00
|
|
|
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
|
2019-09-22 10:31:23 -07:00
|
|
|
;lib_deps = EEPROM
|
2019-03-07 03:47:22 -08:00
|
|
|
board_build.core = stm32
|
2019-03-12 03:49:09 -07:00
|
|
|
;build_flags = -fpermissive -std=gnu++11 -UBOARD_NR_GPIO_PINS -DCORE_STM32_OFFICIAL -DSRAM_AS_EEPROM
|
2019-09-22 10:31:23 -07:00
|
|
|
build_flags = -fpermissive -std=gnu++11 -UBOARD_NR_GPIO_PINS -DCORE_STM32_OFFICIAL -DSPIFLASH_AS_EEPROM -DUSBCON -DUSBD_VID=0x0483 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"BLACK_F407VE\"" -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED
|
2019-10-01 10:25:46 -07:00
|
|
|
upload_protocol = stlink
|
2017-03-22 23:19:18 -07:00
|
|
|
|
|
|
|
[env:bluepill_f103c8]
|
|
|
|
platform = ststm32
|
|
|
|
framework = arduino
|
|
|
|
; framework-arduinoststm32
|
|
|
|
board = bluepill_f103c8
|
2017-02-07 20:40:44 -08:00
|
|
|
lib_deps = EEPROM
|
2017-10-25 18:30:28 -07:00
|
|
|
;build_flags = -fpermissive -std=gnu++11 -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-Map,output.map
|
2019-03-07 03:47:22 -08:00
|
|
|
build_flags = -fpermissive -std=gnu++11 -Os -DCORE_STM32_OFFICIAL -UBOARD_NR_GPIO_PINS
|
2019-01-17 01:47:19 -08:00
|
|
|
|
|
|
|
;SAMD21
|
|
|
|
[env:samd21]
|
|
|
|
platform = atmelsam
|
|
|
|
framework = arduino
|
|
|
|
board = zeroUSB
|
2019-01-18 02:46:03 -08:00
|
|
|
;lib_deps = EEPROM
|
2019-01-17 01:47:19 -08:00
|
|
|
build_flags = -fpermissive -std=gnu++11
|
|
|
|
upload_protocol = sam-ba
|
|
|
|
|
2017-02-07 20:40:44 -08:00
|
|
|
|
2018-01-27 03:14:11 -08:00
|
|
|
;Support for the stm32f407 doesn't look ready in platformio yet
|
|
|
|
;[env:genericSTM32F407VE]
|
|
|
|
;platform = https://github.com/maichaell/platform-ststm32
|
|
|
|
;framework = arduino
|
|
|
|
;board = disco_f407vg
|
|
|
|
;lib_deps = EEPROM
|
|
|
|
;build_flags = -fpermissive -std=gnu++11 -DUSE_STM32GENERIC -DMENU_USB_SERIAL
|
2017-02-07 20:40:44 -08:00
|
|
|
|
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
|
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
|
2017-02-08 19:17:20 -08:00
|
|
|
;env_default = teensy35
|
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
|
|
|
|
|
|
|
|