Add an option to specify "pulse" timer
This commit is contained in:
@ -57,6 +57,9 @@ typedef uint32_t hal_timer_t;
|
||||
#define STEPPER_TIMER STEP_TIMER_NUM // Alias?
|
||||
#define STEPPER_TIMER_PRESCALE 0 // Not defined anywhere else!
|
||||
|
||||
#define PULSE_TIMER_NUM STEP_TIMER_NUM
|
||||
#define PULSE_TIMER_PRESCALE STEPPER_TIMER_PRESCALE
|
||||
|
||||
#define HAL_TIMER_RATE (FTM0_TIMER_RATE)
|
||||
#define HAL_STEPPER_TIMER_RATE HAL_TIMER_RATE
|
||||
#define HAL_TICKS_PER_US ((HAL_STEPPER_TIMER_RATE) / 1000000)
|
||||
|
Reference in New Issue
Block a user