Rev 683 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 683 | Rev 685 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | /*####################################################################################### |
- | |
- | 1 | #ifndef _ANALOG_H |
|
- | 2 | #define _ANALOG_H |
|
Line 2... | Line 3... | ||
2 | 3 | ||
Line 3... | Line 4... | ||
3 | #######################################################################################*/ |
4 | #include <inttypes.h> |
4 | 5 | ||
5 | extern volatile int16_t UBat; |
6 | extern volatile int16_t UBat; |
6 | extern volatile int16_t AdValueGyrNick, AdValueGyrRoll, AdValueGyrGier; |
7 | extern volatile int16_t AdValueGyrNick, AdValueGyrRoll, AdValueGyrGier; |
Line 13... | Line 14... | ||
13 | extern uint8_t DruckOffsetSetting; |
14 | extern uint8_t DruckOffsetSetting; |
14 | extern volatile int16_t HoeheD; |
15 | extern volatile int16_t HoeheD; |
15 | extern volatile uint16_t MessLuftdruck; |
16 | extern volatile uint16_t MessLuftdruck; |
16 | extern volatile int16_t StartLuftdruck; |
17 | extern volatile int16_t StartLuftdruck; |
Line 17... | Line 18... | ||
17 | 18 | ||
Line 18... | Line 19... | ||
18 | void SucheLuftruckOffset(void); |
19 | extern void SucheLuftruckOffset(void); |
Line 19... | Line 20... | ||
19 | 20 | ||
20 | void ADC_Init(void); |
21 | extern void ADC_Init(void); |
21 | 22 | ||
22 | // clear ADC enable & ADC Start Conversion & ADC Interrupt Enable bit |
23 | // clear ADC enable & ADC Start Conversion & ADC Interrupt Enable bit |
Line -... | Line 24... | ||
- | 24 | #define ADC_Disable() (ADCSRA &= ~((1<<ADEN)|(1<<ADSC)|(1<<ADIE))) |
|
- | 25 | // set ADC enable & ADC Start Conversion & ADC Interrupt Enable bit |
|
- | 26 | #define ADC_Enable() (ADCSRA |= (1<<ADEN)|(1<<ADSC)|(1<<ADIE)) |
|
- | 27 |