Revision 64aea12e scout_avr/src/stepper.h

View differences:

scout_avr/src/stepper.h
6 6

  
7 7
#define S_MS      PB7
8 8

  
9
#define S_EN      PF0
10

  
9 11
#define STEP_WHOLE 2
10 12
#define STEP_HALF 1
11 13

  
......
13 15
 * and step_dir should be called before using step_sweep. */
14 16
void step_init();
15 17

  
18
/* Don't call step_do_step or step_sweep if you haven't called step_enable() */
16 19

  
17 20
void step_set_size(char size);
18 21
void step_dir(int dir);
......
20 23
void step_flush();
21 24
void step_sweep_bounds(int ccw, int cw);
22 25
void step_sweep();
26
void step_enable();
27
void step_disable();
23 28

  
24 29

  
25 30
#endif

Also available in: Unified diff