Subversion Repositories FlightCtrl

Rev

Rev 1226 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1226 Rev 1286
Line 40... Line 40...
40
 
40
 
Line 41... Line 41...
41
#define ANALOG_OFF ADCSRA=0
41
#define ANALOG_OFF ADCSRA=0
42
 
42
 
-
 
43
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(0<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE)
-
 
44
 //Signle trigger Mode, Interrupt on
-
 
45
 
43
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(0<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE)
46
#define ANALOG_START ADCSRA |= (1<<ADSC)  // MartinR