🐛 Followup to HAL/STM32 targets (Longer3D timers) (#22369)

This commit is contained in:
Tanguy Pruvot
2021-07-16 03:40:05 +02:00
committed by GitHub
parent 0207569ca6
commit 5b43795f54
2 changed files with 13 additions and 11 deletions

View File

@@ -132,8 +132,12 @@ extern "C" {
// Timer Definitions (optional) // Timer Definitions (optional)
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin // Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
#define TIMER_TONE TIM3 #ifndef TIMER_TONE
#define TIMER_SERVO TIM2 #define TIMER_TONE TIM6
#endif
#ifndef TIMER_SERVO
#define TIMER_SERVO TIM7
#endif
// UART Definitions // UART Definitions
// Define here Serial instance number to map on Serial generic name // Define here Serial instance number to map on Serial generic name

View File

@@ -194,7 +194,7 @@ build_flags = ${env:STM32F103RE_btt.build_flags} ${env:stm32_flash_drive.b
[env:flsun_hispeedv1] [env:flsun_hispeedv1]
platform = ${common_stm32.platform} platform = ${common_stm32.platform}
extends = common_stm32 extends = common_stm32
build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3 build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3 -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
board = genericSTM32F103VE board = genericSTM32F103VE
board_build.core = stm32 board_build.core = stm32
board_build.variant = MARLIN_F103Vx board_build.variant = MARLIN_F103Vx
@@ -210,7 +210,7 @@ extra_scripts = ${stm32f1_variant.extra_scripts}
[env:mks_robin_nano35] [env:mks_robin_nano35]
platform = ${common_stm32.platform} platform = ${common_stm32.platform}
extends = common_stm32 extends = common_stm32
build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3 build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3 -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
board = genericSTM32F103VE board = genericSTM32F103VE
board_build.core = stm32 board_build.core = stm32
board_build.variant = MARLIN_F103Vx board_build.variant = MARLIN_F103Vx
@@ -272,7 +272,7 @@ board_build.core = stm32
board_build.variant = MARLIN_F103Vx board_build.variant = MARLIN_F103Vx
board_build.offset = 0x7000 board_build.offset = 0x7000
board_build.encrypt = Robin_mini.bin board_build.encrypt = Robin_mini.bin
build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
board_upload.offset_address = 0x08007000 board_upload.offset_address = 0x08007000
extra_scripts = ${stm32f1_variant.extra_scripts} extra_scripts = ${stm32f1_variant.extra_scripts}
@@ -326,7 +326,7 @@ board_build.core = stm32
board_build.variant = MARLIN_F103Vx board_build.variant = MARLIN_F103Vx
board_build.offset = 0x7000 board_build.offset = 0x7000
board_build.encrypt = Robin_e3p.bin board_build.encrypt = Robin_e3p.bin
build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
board_upload.offset_address = 0x08007000 board_upload.offset_address = 0x08007000
extra_scripts = ${stm32f1_variant.extra_scripts} extra_scripts = ${stm32f1_variant.extra_scripts}
debug_tool = jlink debug_tool = jlink
@@ -369,13 +369,11 @@ platform = ${common_stm32.platform}
extends = common_stm32 extends = common_stm32
board = genericSTM32F103VE board = genericSTM32F103VE
board_build.core = stm32 board_build.core = stm32
board_build.variant = MARLIN_F103Zx board_build.variant = MARLIN_F103Vx
board_build.offset = 0x1000 board_build.offset = 0x1000
board_build.address = 0x08010000 board_build.address = 0x08010000
build_flags = ${common_stm32.build_flags} build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DU20 -DTS_V12
-DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12 build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
build_unflags = ${common_stm32.build_unflags}
-DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
extra_scripts = ${stm32f1_variant.extra_scripts} extra_scripts = ${stm32f1_variant.extra_scripts}
buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py