1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 10:06:13 +01:00
CommandStation-EX/platformio.ini

222 lines
4.3 KiB
INI
Raw Normal View History

2020-05-25 09:43:34 +02: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
; https://docs.platformio.org/page/projectconf.html
[platformio]
2020-08-27 00:19:42 +02:00
default_envs =
mega2560
uno
mega328
unowifiR2
nano
2022-05-17 12:06:08 +02:00
samd21-dev-usb
samd21-zero-usb
2022-08-03 10:21:58 +02:00
ESP32
Nucleo-STM32F411RE
Teensy3.2
Teensy3.5
Teensy3.6
Teensy4.0
Teensy4.1
src_dir = .
include_dir = .
[env]
build_flags = -Wall -Wextra
2020-08-27 00:19:42 +02:00
2022-05-17 12:06:08 +02:00
[env:samd21-dev-usb]
2020-05-25 09:43:34 +02:00
platform = atmelsam
board = sparkfun_samd21_dev_usb
framework = arduino
2022-05-17 12:06:08 +02:00
upload_protocol = sam-ba
2022-08-03 10:21:58 +02:00
lib_deps = ${env.lib_deps}
2022-05-17 12:06:08 +02:00
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
2022-08-03 10:21:58 +02:00
build_flags = -std=c++17
2022-05-17 12:06:08 +02:00
[env:samd21-zero-usb]
platform = atmelsam
board = zeroUSB
framework = arduino
upload_protocol = sam-ba
2022-08-03 10:21:58 +02:00
lib_deps = ${env.lib_deps}
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
2022-08-03 10:21:58 +02:00
build_flags = -std=c++17
2022-05-17 12:06:08 +02:00
[env:samc21-firebox]
platform = atmelsam
board = firebox
framework = arduino
upload_protocol = atmel-ice
2020-05-25 09:43:34 +02:00
lib_deps =
2020-08-27 00:19:42 +02:00
${env.lib_deps}
SparkFun External EEPROM Arduino Library
2020-09-27 11:03:05 +02:00
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
2022-08-03 10:21:58 +02:00
build_flags = -std=c++17
2020-05-25 09:43:34 +02:00
[env:mega2560-debug]
platform = atmelavr
board = megaatmega2560
framework = arduino
lib_deps =
${env.lib_deps}
arduino-libraries/Ethernet
SPI
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
build_flags = -DDIAG_IO -DDIAG_LOOPTIMES
[env:mega2560-no-HAL]
platform = atmelavr
board = megaatmega2560
framework = arduino
lib_deps =
${env.lib_deps}
arduino-libraries/Ethernet
SPI
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
build_flags = -DIO_NO_HAL
[env:mega2560-I2C-wire]
platform = atmelavr
board = megaatmega2560
framework = arduino
lib_deps =
${env.lib_deps}
arduino-libraries/Ethernet
SPI
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
build_flags = -DI2C_USE_WIRE
2020-05-25 09:43:34 +02:00
[env:mega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
lib_deps =
2020-08-27 00:19:42 +02:00
${env.lib_deps}
arduino-libraries/Ethernet
SPI
2020-09-27 11:03:05 +02:00
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
2020-05-26 11:16:05 +02:00
[env:mega328]
platform = atmelavr
board = uno
framework = arduino
lib_deps =
2020-08-27 00:19:42 +02:00
${env.lib_deps}
2020-09-26 23:46:28 +02:00
arduino-libraries/Ethernet
SPI
2020-09-27 11:03:05 +02:00
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
[env:unowifiR2]
platform = atmelmegaavr
board = uno_wifi_rev2
framework = arduino
2020-09-19 02:02:56 +02:00
lib_deps =
${env.lib_deps}
2020-09-26 23:46:28 +02:00
arduino-libraries/Ethernet
SPI
2020-09-27 11:03:05 +02:00
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
build_flags = "-DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR -DESP_CH_UART -DESP_CH_UART_BR=19200"
[env:nanoevery]
platform = atmelmegaavr
board = nano_every
framework = arduino
lib_deps =
${env.lib_deps}
arduino-libraries/Ethernet
SPI
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
upload_speed = 19200
build_flags = -DDIAG_IO
2020-08-27 00:19:42 +02:00
[env:uno]
platform = atmelavr
board = uno
framework = arduino
2020-09-19 02:02:56 +02:00
lib_deps =
${env.lib_deps}
2020-09-26 23:46:28 +02:00
arduino-libraries/Ethernet
SPI
2020-09-27 11:03:05 +02:00
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
[env:nano]
platform = atmelavr
board = nanoatmega328new
board_upload.maximum_size = 32256
framework = arduino
2022-08-03 10:21:58 +02:00
lib_deps = ${env.lib_deps}
monitor_speed = 115200
2022-08-09 06:28:15 +02:00
monitor_echo = yes
2022-08-03 10:21:58 +02:00
[env:ESP32]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = ${env.lib_deps}
build_flags = -std=c++17
[env:Nucleo-STM32F411RE]
platform = ststm32
board = nucleo_f411re
framework = arduino
lib_deps = ${env.lib_deps}
build_flags = -std=c++17 -DDISABLE_EEPROM -Os -g2
monitor_speed = 115200
monitor_echo = yes
[env:Teensy3.2]
platform = teensy
board = teensy31
framework = arduino
build_flags = -std=c++17 -DDISABLE_EEPROM -Os -g2
lib_deps = ${env.lib_deps}
lib_ignore = NativeEthernet
[env:Teensy3.5]
platform = teensy
board = teensy35
framework = arduino
build_flags = -std=c++17 -DDISABLE_EEPROM -Os -g2
lib_deps = ${env.lib_deps}
lib_ignore = NativeEthernet
[env:Teensy3.6]
platform = teensy
board = teensy36
framework = arduino
build_flags = -std=c++17 -DDISABLE_EEPROM -Os -g2
lib_deps = ${env.lib_deps}
lib_ignore = NativeEthernet
[env:Teensy4.0]
platform = teensy
board = teensy40
framework = arduino
build_flags = -std=c++17 -DDISABLE_EEPROM -Os -g2
lib_deps = ${env.lib_deps}
lib_ignore = NativeEthernet
[env:Teensy4.1]
platform = teensy
board = teensy41
framework = arduino
build_flags = -std=c++17 -DDISABLE_EEPROM -Os -g2
lib_deps = ${env.lib_deps}
lib_ignore =