Kludge with 'tone' of steppers. Gives ferror, but nice tone

This commit is contained in:
Hakan Bastedt
2024-01-21 23:29:59 +01:00
parent 6ac0949f26
commit b534e3d4da
3 changed files with 10 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ private:
public:
static uint32_t sync0CycleTime;
static uint32_t pwmCycleTime;
volatile uint32_t pwmCycleTime;
StepGen(TIM_TypeDef *Timer, uint32_t timerChannel, PinName stepPin, uint8_t dirPin, void irq(void));
void reqPos(double_t pos);