Project

General

Profile

Revision 1518

Added by Brad Neuman over 14 years ago

updated library to add DRAGONFLY_DEBUG stuff
Can now call make debug which will recompile the library with debug flags!

View differences:

dragonfly_lib.c
67 67

  
68 68
int dragonfly_init(int config) 
69 69
{
70
  int ret = 0;
71

  
70 72
    sei();
71 73
    // Set directionality of various IO pins
72 74
    DDRG &= ~(_BV(PING0)|_BV(PING1));
73 75
    PORTG |= _BV(PING0)|_BV(PING1);
74 76
    
75
    if(config & ANALOG)
76
        analog_init(ADC_START);
77
    if(config & ANALOG) {
78
      analog_init(ADC_START);
79
    }
77 80
    
78 81
    if(config & COMM)
79 82
    {
......
116 119
            return ERROR_INIT_FAILED;
117 120
    }
118 121

  
119
	if (config & ENCODERS)
120
	{
121
		encoders_init();
122
	}
122
    if (config & ENCODERS)
123
    {
124
        encoders_init();
125
    }
123 126

  
124 127
    // delay a bit for stability
125 128
    _delay_ms(1);

Also available in: Unified diff