Browse Source

Fix STM401/4xx/STM32F7xx timers, STEVAL_3DP001V1 warning (#16621)

pull/1/head
Bob Kuhn 5 years ago
committed by Scott Lahteine
parent
commit
1a5cbc9052
  1. 26
      Marlin/src/HAL/HAL_STM32/timers.h
  2. 2
      Marlin/src/pins/stm32/pins_STEVAL_3DP001V1.h
  3. 1
      buildroot/share/PlatformIO/variants/STEVAL_F401VE/variant.h

26
Marlin/src/HAL/HAL_STM32/timers.h

@ -57,7 +57,7 @@
#define TEMP_TIMER 2
#endif
#elif defined(STM32F4xx) || defined(STM32F7xx)
#elif defined(STM32F401xC) || defined(STM32F401xE)
#define HAL_TIMER_RATE (F_CPU / 2) // frequency of timer peripherals
@ -71,6 +71,30 @@
#define TEMP_TIMER 10
#endif
#elif defined(STM32F4xx)
#define HAL_TIMER_RATE (F_CPU / 2) // frequency of timer peripherals
#ifndef STEP_TIMER
#define STEP_TIMER 6
#endif
#ifndef TEMP_TIMER
#define TEMP_TIMER 14
#endif
#elif defined(STM32F7xx)
#define HAL_TIMER_RATE (F_CPU/2) // frequency of timer peripherals
#ifndef STEP_TIMER
#define STEP_TIMER 6
#endif
#ifndef TEMP_TIMER
#define TEMP_TIMER 14
#endif
#endif
#ifndef SWSERIAL_TIMER_IRQ_PRIO

2
Marlin/src/pins/stm32/pins_STEVAL_3DP001V1.h

@ -48,8 +48,6 @@
#define MACHINE_NAME "STEVAL-3DP001V1"
#endif
#define TIMER_TONE 5
//
// Limit Switches
//

1
buildroot/share/PlatformIO/variants/STEVAL_F401VE/variant.h

@ -200,6 +200,7 @@ extern "C" {
// Timer Definitions
#define TIMER_SERVO TIM4 // TIMER_SERVO must be defined in this file
#define TIMER_TONE TIM5 // TIMER_TONE must be defined in this file
/* SD detect signal */
/*

Loading…
Cancel
Save