Subversion Repositories Projects

Rev

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

Rev 783 Rev 835
Line 21... Line 21...
21
#ifndef _USART1_H
21
#ifndef _USART1_H
22
#define _USART1_H
22
#define _USART1_H
23
 
23
 
24
#define baud 57600
24
#define baud 57600
25
 
25
 
26
#define RXD_BUFFER_LEN          160
26
#define RXD_BUFFER_LEN          180
27
#define TXD_BUFFER_LEN          20 // not so much needed
27
#define TXD_BUFFER_LEN          20 // not so much needed
28
 
28
 
29
//#define REQUEST_OSD_DATA "#aoAm==EX\r" 
29
//#define REQUEST_OSD_DATA "#aoAm==EX\r" 
30
#define REQUEST_OSD_DATA "#bo?]==EG\r"
30
#define REQUEST_OSD_DATA "#bo?]==EG\r"
31
#define REQUEST_DBG_DATA "#ad?]==D{\r"
31
#define REQUEST_DBG_DATA "#ad?]==D{\r"
Line 85... Line 85...
85
 * portions taken and adapted from
85
 * portions taken and adapted from
86
 * http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=FlightCtrl&path=%2Ftags%2FV0.72p%2Fuart.c
86
 * http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=FlightCtrl&path=%2Ftags%2FV0.72p%2Fuart.c
87
 */
87
 */
88
void Decode64(void);
88
void Decode64(void);
89
 
89
 
90
/**
90
/**
91
 * Request Data through usart1 until a answer is received
91
 * Request Data through usart1 until a answer is received
92
 */
92
 */
93
void usart1_request_blocking(unsigned char answer, const char* message);
93
void usart1_request_blocking(unsigned char answer, const char* message);
94
 
94
 
95
/**
95
/**
96
 * Request UART Redirect from NC to itself
96
 * Request UART Redirect from NC to itself
97
 */
97
 */
98
void usart1_request_nc_uart(void);
98
void usart1_request_nc_uart(void);
99
 
99
 
100
/**
100
/**
101
 * request Data through USART in special MK format by adding checksum and
101
 * request Data through USART in special MK format by adding checksum and