Subversion Repositories MK3Mag

Rev

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

Rev 19 Rev 29
Line 19... Line 19...
19
        ADC7 = 7,
19
        ADC7 = 7,
20
        REF1V1 = 14,
20
        REF1V1 = 14,
21
        AGND = 15
21
        AGND = 15
22
} ADChannel_t;
22
} ADChannel_t;
Line -... Line 23...
-
 
23
 
-
 
24
 
-
 
25
#define MAG_X ADC0
-
 
26
#define MAG_Y ADC1
-
 
27
#define MAG_Z ADC7
-
 
28
#define ACC_X ADC2
-
 
29
#define ACC_Y ADC3
-
 
30
#define ACC_Z ADC6
-
 
31
 
-
 
32
 
-
 
33
extern uint8_t AccPresent;
23
 
34
 
24
void ADC_Init(void);
35
void ADC_Init(void);
Line 25... Line 36...
25
uint16_t ADC_GetValue(ADChannel_t channel);
36
uint16_t ADC_GetValue(ADChannel_t channel);