Revision 64aea12e scout_avr/src/stepper.cpp

View differences:

scout_avr/src/stepper.cpp
29 29
  //set control pins as output
30 30
  DDRD |= ((1<<S_STEP) | (1<<S_DIR));
31 31
  DDRB |= ((1<<S_MS));
32
  
33
  /* this is connected to ENABLE temporarily */
34
  DDRF |= _BV(S_EN);
35
  step_disable();
32 36

  
33 37
  //initiate to full steps
34 38
  step_set_size(STEP_WHOLE);
......
37 41
  PORTD &= (~(1<<S_STEP));
38 42
}
39 43

  
44
void step_enable()
45
{
46
  PORTF &= ~_BV(S_EN);
47
}
48

  
49
void step_disable()
50
{
51
  PORTF |= _BV(S_EN);
52
}
53

  
40 54
void step_set_size(char size)
41 55
{
42 56
  if (size == STEP_WHOLE)

Also available in: Unified diff