Add an option to specify "pulse" timer

This commit is contained in:
Scott Lahteine
2017-12-09 19:59:12 -06:00
parent b8bc965414
commit 82ef6b5242
6 changed files with 25 additions and 9 deletions

View File

@ -109,6 +109,10 @@ extern "C" {
#define STEPPER_TIMER_PRESCALE 8
#define HAL_TICKS_PER_US ((HAL_STEPPER_TIMER_RATE) / 1000000) // Cannot be of type double
#define PULSE_TIMER_NUM TEMP_TIMER_NUM
#define TIMER_COUNTER_0 TCNT0
#define PULSE_TIMER_PRESCALE 8
#define ENABLE_STEPPER_DRIVER_INTERRUPT() SBI(TIMSK1, OCIE1A)
#define DISABLE_STEPPER_DRIVER_INTERRUPT() CBI(TIMSK1, OCIE1A)