stepper: Support rescheduling of step events on faster MCUs

On faster MCUs the step and unstep events may be too close for the
stepper motor driver.  Add a CONFIG_NO_UNSTEP_DELAY build option and
support the case where it is not set.  This allows faster MCUs to
schedule two events for each step (one for the step and one for the
unstep).

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2016-06-13 19:42:34 -04:00
parent da305e6b61
commit 6220cdda92
3 changed files with 80 additions and 19 deletions

View File

@@ -8,6 +8,7 @@ config AVR_SELECT
select HAVE_GPIO_ADC
select HAVE_GPIO_SPI
select HAVE_GPIO_HARD_PWM
select NO_UNSTEP_DELAY
config BOARD_DIRECTORY
string