[add] comments
This commit is contained in:
@@ -11,15 +11,28 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define STEPS_EACH_PULSE 32
|
||||
|
||||
enum rotation_wise {
|
||||
ClockWise,
|
||||
CounterClockWise
|
||||
};
|
||||
|
||||
/************************************************************************/
|
||||
/* init ports and timers for stepperdriver. */
|
||||
/************************************************************************/
|
||||
void init_stepper_driver();
|
||||
void stepper_rotate(uint16_t steps);
|
||||
/************************************************************************/
|
||||
/* set the rotationangle and turn on stepper */
|
||||
/************************************************************************/
|
||||
void stepper_rotate_angle(uint16_t steps, enum rotation_wise rot);
|
||||
/************************************************************************/
|
||||
/* stepper stop rotating */
|
||||
/************************************************************************/
|
||||
void stepper_rotate_stop();
|
||||
/************************************************************************/
|
||||
/* set the event for the ultrasonic pulse */
|
||||
/************************************************************************/
|
||||
void set_snap_event(void (*snap_event_p)(uint8_t));
|
||||
|
||||
#endif /* STEPPER_DRIVER_H_ */
|
||||
Reference in New Issue
Block a user