2019-10-06 13:09:15 +00:00
|
|
|
; PlatformIO Project Configuration File2
|
|
|
|
; http://docs.platformio.org/page/projectconf.html
|
|
|
|
|
|
|
|
[platformio]
|
|
|
|
include_dir = Inc
|
|
|
|
src_dir = Src
|
|
|
|
|
2019-12-23 11:12:01 +00:00
|
|
|
;=================== VARIANT SELECTION ==========================
|
|
|
|
default_envs = VARIANT_ADC ; Variant for control via ADC input
|
|
|
|
;default_envs = VARIANT_USART3 ; Variant for Serial control via USART3 input
|
|
|
|
;default_envs = TRANSPOTTER ; Variant for TRANSPOTTER build https://github.com/Jan--Henrik/transpOtterNG
|
|
|
|
;================================================================
|
|
|
|
|
|
|
|
[env:VARIANT_ADC]
|
2019-10-06 13:09:15 +00:00
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
; Serial Port settings (make sure the COM port is correct)
|
|
|
|
monitor_port = COM5
|
2019-11-29 16:31:53 +00:00
|
|
|
monitor_speed = 38400
|
2019-10-06 13:09:15 +00:00
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-I${PROJECT_DIR}/inc/
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
2019-12-23 11:12:01 +00:00
|
|
|
|
|
|
|
[env:VARIANT_USART3]
|
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
; Serial Port settings (make sure the COM port is correct)
|
|
|
|
monitor_port = COM5
|
|
|
|
monitor_speed = 38400
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-I${PROJECT_DIR}/inc/
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
|
|
|
-D VARIANT_USART3
|
|
|
|
|
|
|
|
[env:TRANSPOTTER]
|
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-I${PROJECT_DIR}/inc/
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
|
|
|
-D TRANSPOTTER
|