Subversion Repositories MK3Mag

Rev

Rev 19 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef _MAIN_H_
#define _MAIN_H_


#include <avr/eeprom.h>
#include <inttypes.h>



#define SYSCLK  8000000L        //Quarz Frequenz in Hz

typedef enum
{
        ATTITUDE_SOURCE_I2C,
        ATTITUDE_SOURCE_UART,
        ATTITUDE_SOURCE_ACC
} AttitudeSource_t;


extern uint8_t PC_Connected;
extern int16_t Heading;
extern AttitudeSource_t AttitudeSource;

extern int16_t MagX, MagY, MagZ;

void SetDebugValues(void);

#endif //_MAIN_H_