Subversion Repositories FlightCtrl

Rev

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

Rev 270 Rev 271
Line 12... Line 12...
12
extern unsigned char DruckOffsetSetting;
12
extern unsigned char DruckOffsetSetting;
13
extern volatile int HoeheD;
13
extern volatile int HoeheD;
14
extern volatile unsigned int  MessLuftdruck;
14
extern volatile unsigned int  MessLuftdruck;
15
extern volatile int  StartLuftdruck;
15
extern volatile int  StartLuftdruck;
16
 
16
 
17
extern unsigned int ReadADC(unsigned char adc_input);
17
unsigned int ReadADC(unsigned char adc_input);
18
extern void         ADC_Init(void);
18
void         ADC_Init(void);
19
extern void SucheLuftruckOffset(void);
19
void SucheLuftruckOffset(void);
20
 
20
 
21
 
21
 
22
#define ANALOG_OFF ADCSRA=0
22
#define ANALOG_OFF ADCSRA=0
23
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE)
23
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE)