Skip to content

Commit

Permalink
🔨 Set Longer3D timers in variant (MarlinFirmware#22632)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot authored and Night69 committed Aug 31, 2021
1 parent b6dc453 commit 4ffd7ae
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 218 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ WEAK const PinMap PinMap_PWM[] = {
{PE_13, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_ENABLE, 3, 0)}, // TIM1_CH3
{PE_14, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_ENABLE, 4, 0)}, // TIM1_CH4
#endif // if 0
{PA_15, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_1, 1, 0)}, // TIM2_CH1 Part Fan
{PD_12, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM4_ENABLE, 1, 0)}, // TIM4_CH1 TFT Backlight
{PD_13, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM4_ENABLE, 2, 0)}, // TIM4_CH2 Servo connector
{NC, NP, 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ extern "C" {
#define PIN_WIRE_SCL PB10

// Timer Definitions
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
#ifndef TIMER_TONE
#define TIMER_TONE TIM6
#endif
#ifndef TIMER_SERVO
#define TIMER_SERVO TIM7
#endif
// Leave TIMER 2 for optional Fan PWM
#define TEMP_TIMER 3
// Leave TIMER 4 for TFT backlight PWM or Servo freq...
#define STEP_TIMER 5
#define TIMER_TONE TIM6
#define TIMER_SERVO TIM7
#define TIMER_SERIAL TIM8

// UART Definitions
// Define here Serial instance number to map on Serial generic name
Expand Down
Loading

0 comments on commit 4ffd7ae

Please sign in to comment.