This commit is contained in:
Hakan Bastedt
2024-02-05 21:22:23 +01:00
parent dbb4d0f34e
commit 43854ca4d0
3 changed files with 62 additions and 51 deletions

View File

@@ -34,8 +34,10 @@ void timerCallbackStep2(void)
#endif
#include "StepGen2.h"
void timerCallbackStep(void);
StepGen2 Step(TIM1, TIM10, 4, PA_11, PA12, timerCallbackStep);
void timerCallbackStepStart(void);
StepGen2 Step(TIM1, 4, PA_11, PA12, timerCallbackStep, TIM10, timerCallbackStepStart);
void timerCallbackStep(void) { Step.timerCB(); }
void timerCallbackStepStart(void) { Step.timer2CB(); }
CircularBuffer<uint32_t, 200> Tim;
volatile uint64_t nowTime = 0, thenTime = 0;