Subversion Repositories MK3Mag

Rev

Rev 19 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 28
1
#ifndef _MAIN_H_
1
#ifndef _MAIN_H_
2
#define _MAIN_H_
2
#define _MAIN_H_
3
 
3
 
4
 
4
 
5
#include <avr/eeprom.h>
5
#include <avr/eeprom.h>
6
#include <inttypes.h>
6
#include <inttypes.h>
7
 
7
 
8
 
8
 
9
 
9
 
10
#define SYSCLK  8000000L        //Quarz Frequenz in Hz
10
#define SYSCLK  8000000L        //Quarz Frequenz in Hz
-
 
11
 
-
 
12
typedef enum
-
 
13
{
-
 
14
        ATTITUDE_SOURCE_I2C,
-
 
15
        ATTITUDE_SOURCE_UART,
-
 
16
        ATTITUDE_SOURCE_ACC
11
 
-
 
-
 
17
} AttitudeSource_t;
12
 
18
 
-
 
19
 
13
extern uint8_t PC_Connected;
20
extern uint8_t PC_Connected;
14
 
21
extern int16_t Heading;
15
extern int16_t Heading;
22
extern AttitudeSource_t AttitudeSource;
16
 
23
 
17
extern int16_t MagnetX, MagnetY, MagnetZ;
24
extern int16_t MagX, MagY, MagZ;
18
 
25
 
19
void SetDebugValues(void);
26
void SetDebugValues(void);
20
 
27
 
21
#endif //_MAIN_H_
28
#endif //_MAIN_H_
22
 
29
 
23
 
30
 
24
 
31
 
25
 
32
 
26
 
33
 
27
 
34