Sfoglia il codice sorgente

🔨 Set Longer3D timers in variant (#22632)

Tanguy Pruvot 3 anni fa
parent
commit
36e40b68c9
Nessun account collegato all'indirizzo email del committer

+ 1
- 0
buildroot/share/PlatformIO/variants/MARLIN_F103VE_LONGER/PeripheralPins.c Vedi File

@@ -154,6 +154,7 @@ WEAK const PinMap PinMap_PWM[] = {
154 154
   {PE_13, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_ENABLE, 3, 0)}, // TIM1_CH3
155 155
   {PE_14, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_ENABLE, 4, 0)}, // TIM1_CH4
156 156
 #endif // if 0
157
+  {PA_15, TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_1, 1, 0)}, // TIM2_CH1 Part Fan
157 158
   {PD_12, TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM4_ENABLE, 1, 0)}, // TIM4_CH1 TFT Backlight
158 159
   {PD_13, TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM4_ENABLE, 2, 0)}, // TIM4_CH2 Servo connector
159 160
   {NC,    NP,    0}

+ 7
- 7
buildroot/share/PlatformIO/variants/MARLIN_F103VE_LONGER/variant.h Vedi File

@@ -117,13 +117,13 @@ extern "C" {
117 117
 #define PIN_WIRE_SCL            PB10
118 118
 
119 119
 // Timer Definitions
120
-// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
121
-#ifndef TIMER_TONE
122
-  #define TIMER_TONE            TIM6
123
-#endif
124
-#ifndef TIMER_SERVO
125
-  #define TIMER_SERVO           TIM7
126
-#endif
120
+// Leave TIMER 2 for optional Fan PWM
121
+#define TEMP_TIMER              3
122
+// Leave TIMER 4 for TFT backlight PWM or Servo freq...
123
+#define STEP_TIMER              5
124
+#define TIMER_TONE              TIM6
125
+#define TIMER_SERVO             TIM7
126
+#define TIMER_SERIAL            TIM8
127 127
 
128 128
 // UART Definitions
129 129
 // Define here Serial instance number to map on Serial generic name

+ 1
- 1
ini/stm32f1.ini Vedi File

@@ -338,7 +338,7 @@ board_build.variant         = MARLIN_F103VE_LONGER
338 338
 board_build.rename          = project.bin
339 339
 board_build.offset          = 0x10000
340 340
 board_upload.offset_address = 0x08010000
341
-build_flags                 = ${stm32_variant.build_flags} -DMCU_STM32F103VE -DSTEP_TIMER=5 -DU20 -DTS_V12
341
+build_flags                 = ${stm32_variant.build_flags} -DMCU_STM32F103VE -DU20 -DTS_V12
342 342
 build_unflags               = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
343 343
 extra_scripts               = ${stm32_variant.extra_scripts}
344 344
 monitor_speed               = 250000

Loading…
Annulla
Salva