Subversion Repositories FlightCtrl

Rev

Rev 1036 | Rev 1058 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1036 Rev 1051
Line 1... Line 1...
1
 #ifndef _UART_H
1
 #ifndef _UART_H
2
 #define _UART_H
2
 #define _UART_H
Line 3... Line 3...
3
 
3
 
4
#define MAX_SENDE_BUFF     150
4
#define MAX_SENDE_BUFF     150
5
#define MAX_EMPFANGS_BUFF  150
-
 
6
#define DUB_KEY_UP     4
-
 
7
#define DUB_KEY_DOWN   8
-
 
8
#define DUB_KEY_RIGHT  32
-
 
9
#define DUB_KEY_LEFT   16
-
 
Line 10... Line 5...
10
#define DUB_KEY_FIRE   64
5
#define MAX_EMPFANGS_BUFF  150
Line 11... Line 6...
11
 
6
 
12
void BearbeiteRxDaten(void);
7
void BearbeiteRxDaten(void);
Line 26... Line 21...
26
extern void boot_program_page (uint32_t page, uint8_t *buf);
21
extern void boot_program_page (uint32_t page, uint8_t *buf);
27
extern void DatenUebertragung(void);
22
extern void DatenUebertragung(void);
28
extern void DecodeNMEA(void);
23
extern void DecodeNMEA(void);
29
extern void BearbeiteRxDaten(void);
24
extern void BearbeiteRxDaten(void);
30
extern unsigned char MotorTest[4];
25
extern unsigned char MotorTest[4];
31
extern unsigned char DubWiseKeys[4];
-
 
32
struct str_DebugOut
26
struct str_DebugOut
33
{
27
{
34
 unsigned char Digital[2];
28
 unsigned char Digital[2];
35
 signed int Analog[32];    // Debugwerte
29
 signed int Analog[32];    // Debugwerte
36
};
30
};
Line 39... Line 33...
39
 
33
 
40
struct str_WinkelOut
34
struct str_WinkelOut
41
{
35
{
42
   signed int  Winkel[2];
36
   signed int  Winkel[2];
43
 unsigned char UserParameter[2];
37
 unsigned char UserParameter[2];
44
 unsigned char CalcState;        
38
 unsigned char CalcState;
45
 unsigned char Orientation;
39
 unsigned char Orientation;
46
};
40
};
Line 47... Line 41...
47
extern struct str_WinkelOut  WinkelOut;
41
extern struct str_WinkelOut  WinkelOut;
Line 56... Line 50...
56
 unsigned char Gas;
50
 unsigned char Gas;
57
 signed char   Hight;
51
 signed char   Hight;
58
 unsigned char free;
52
 unsigned char free;
59
 unsigned char Frame;
53
 unsigned char Frame;
60
 unsigned char Config;
54
 unsigned char Config;
61
};
55
};
62
extern struct str_ExternControl   ExternControl;
56
extern struct str_ExternControl   ExternControl;
Line 63... Line 57...
63
 
57
 
64
struct str_VersionInfo
58
struct str_VersionInfo
65
{
59
{
66
  unsigned char Hauptversion;
-
 
67
  unsigned char Nebenversion;
-
 
68
  unsigned char PCKompatibel;
60
  unsigned char Major;
69
  unsigned char Hardware;
61
  unsigned char Minor;
70
  unsigned char Patch;
62
  unsigned char Patch;
71
  unsigned char NaviKompatibel;
63
  unsigned char Compatible;
72
  unsigned char Reserved[4];
64
  unsigned char Reserved[6];
73
};  
65
};
Line 74... Line 66...
74
extern struct str_VersionInfo VersionInfo;
66
extern struct str_VersionInfo VersionInfo;
75
 
67
 
76
//Die Baud_Rate der Seriellen Schnittstelle ist 9600 Baud
68
//Die Baud_Rate der Seriellen Schnittstelle ist 9600 Baud
77
//#define BAUD_RATE 9600                //Baud Rate für die Serielle Schnittstelle      
69
//#define BAUD_RATE 9600                //Baud Rate für die Serielle Schnittstelle
78
//#define BAUD_RATE 14400               //Baud Rate für die Serielle Schnittstelle      
70
//#define BAUD_RATE 14400               //Baud Rate für die Serielle Schnittstelle
79
//#define BAUD_RATE 28800               //Baud Rate für die Serielle Schnittstelle      
71
//#define BAUD_RATE 28800               //Baud Rate für die Serielle Schnittstelle
Line 80... Line 72...
80
//#define BAUD_RATE 38400               //Baud Rate für die Serielle Schnittstelle      
72
//#define BAUD_RATE 38400               //Baud Rate für die Serielle Schnittstelle
81
#define BAUD_RATE 57600         //Baud Rate für die Serielle Schnittstelle      
73
#define BAUD_RATE 57600         //Baud Rate für die Serielle Schnittstelle
82
 
74
 
83
//Anpassen der seriellen Schnittstellen Register wenn ein ATMega128 benutzt wird
75
//Anpassen der seriellen Schnittstellen Register wenn ein ATMega128 benutzt wird