[CountedPWM][Stepper][StepperPWM] Enhanced PWM module to implement a non-blocking Stepper driver
Compare changes
- Riccardo Musso authored
+ 56
− 28
@@ -39,6 +39,7 @@ public:
@@ -62,6 +63,25 @@ public:
@@ -73,6 +93,9 @@ public:
@@ -117,14 +140,13 @@ public:
@@ -140,8 +162,8 @@ inline Stepper::Stepper(miosix::GpioPin stepPin, miosix::GpioPin directionPin,
@@ -152,6 +174,22 @@ inline Stepper::Stepper(miosix::GpioPin stepPin, miosix::GpioPin directionPin,
@@ -168,26 +206,33 @@ inline void Stepper::setMicrostepping(Microstep microstep)
@@ -199,8 +244,10 @@ inline void Stepper::move(int32_t steps)
@@ -222,7 +269,7 @@ inline void Stepper::move(int32_t steps)
@@ -232,33 +279,14 @@ inline void Stepper::setPosition(int32_t steps)
\ No newline at end of file