[2.0.x] Correct step pulse width on LPC1768, DUE & Teensy35_36 (#10016)

This commit is contained in:
Bob-the-Kuhn
2018-03-09 02:11:28 -06:00
committed by Scott Lahteine
parent 3707078ffc
commit 3c58ca181c
3 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ typedef uint32_t hal_timer_t;
#define FTM1_TIMER_RATE (F_BUS / FTM1_TIMER_PRESCALE) // 60MHz / 4 = 15MHz
#define STEPPER_TIMER STEP_TIMER_NUM // Alias?
#define STEPPER_TIMER_PRESCALE 0 // Not defined anywhere else!
#define STEPPER_TIMER_PRESCALE (CYCLES_PER_MICROSECOND / HAL_TICKS_PER_US)
#define PULSE_TIMER_NUM STEP_TIMER_NUM
#define PULSE_TIMER_PRESCALE STEPPER_TIMER_PRESCALE