mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-03-22 09:41:00 +03:00
add some more commands
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user