add some more commands

This commit is contained in:
Edward Emelianov
2021-10-25 23:52:47 +03:00
parent 9b4bb6c02f
commit 263d805bf6
10 changed files with 276 additions and 54 deletions

View File

@@ -21,7 +21,17 @@
#define STEPPERS_H__
#include <stm32f0.h>
#include "commonproto.h"
extern int32_t steps[];
// direction
extern int8_t motdir[];
void addmicrostep(int i);
void encoders_UPD(int i);
void init_steppers();
errcodes getpos(int i, int32_t *position);
errcodes setpos(int i, int32_t newpos);
void stopmotor(int i);
#endif // STEPPERS_H__