Subversion Repositories FlightCtrl

Rev

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

Rev 528 Rev 529
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
-
 
10
#define DUB_KEY_FIRE   64
-
 
11
 
-
 
12
 
5
#define MAX_EMPFANGS_BUFF  150
13
 
6
//Salvo 26.10.2007
14
//Salvo 26.10.2007
7
extern int dataset_cnt;
15
extern int dataset_cnt;
-
 
16
// salvo End
-
 
17
 
-
 
18
void BearbeiteRxDaten(void);
8
// salvo End
19
 
9
extern unsigned char DebugGetAnforderung;
20
extern unsigned char DebugGetAnforderung;
10
extern unsigned volatile char SendeBuffer[MAX_SENDE_BUFF];
21
extern unsigned volatile char SendeBuffer[MAX_SENDE_BUFF];
11
extern unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF];
22
extern unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF];
12
extern unsigned volatile char UebertragungAbgeschlossen;
23
extern unsigned volatile char UebertragungAbgeschlossen;
13
extern unsigned volatile char PC_DebugTimeout;
24
extern unsigned volatile char PC_DebugTimeout;
14
extern unsigned volatile char NeueKoordinateEmpfangen;
25
extern unsigned volatile char NeueKoordinateEmpfangen;
15
extern unsigned char MeineSlaveAdresse;
26
extern unsigned char MeineSlaveAdresse;
-
 
27
extern unsigned char PcZugriff;
16
extern unsigned char PcZugriff;
28
extern unsigned char RemotePollDisplayLine;
17
extern int Debug_Timer;
29
extern int Debug_Timer;
18
extern void UART_Init (void);
30
extern void UART_Init (void);
19
extern int uart_putchar (char c);
31
extern int uart_putchar (char c);
20
extern void boot_program_page (uint32_t page, uint8_t *buf);
32
extern void boot_program_page (uint32_t page, uint8_t *buf);
21
extern void DatenUebertragung(void);
33
extern void DatenUebertragung(void);
-
 
34
extern void DecodeNMEA(void);
22
extern void DecodeNMEA(void);
35
extern void BearbeiteRxDaten(void);
-
 
36
extern unsigned char MotorTest[4];
23
extern unsigned char MotorTest[4];
37
extern unsigned char DubWiseKeys[3];
24
struct str_DebugOut
38
struct str_DebugOut
25
{
39
{
26
 unsigned char Digital[2];
40
 unsigned char Digital[2];
27
 unsigned int Analog[32];    // Debugwerte
41
 unsigned int Analog[32];    // Debugwerte