Subversion Repositories Projects

Rev

Rev 734 | Rev 762 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 734 Rev 738
Line 19... Line 19...
19
 ****************************************************************************/
19
 ****************************************************************************/
Line 20... Line 20...
20
 
20
 
Line 21... Line 21...
21
#define baud 57600
21
#define baud 57600
22
 
22
 
-
 
23
#define RXD_BUFFER_LEN          150
-
 
24
#define TXD_BUFFER_LEN          20 // not so much needed
-
 
25
 
-
 
26
//#define REQUEST_OSD_DATA "#aoAm==EX\r" 
-
 
27
#define REQUEST_OSD_DATA "#bo?]==EG\r"
-
 
28
#define REQUEST_DBG_DATA "#ad?]==D{\r"
Line 23... Line 29...
23
#define RXD_BUFFER_LEN          150
29
#define REQUEST_FC_VERSION "#av====Dk\r"
24
#define TXD_BUFFER_LEN          10 // not needed
30
#define REQUEST_NC_VERSION "#bv====Dl\r"
25
 
31
 
26
extern volatile uint8_t rxd_buffer_locked;
32
extern volatile uint8_t rxd_buffer_locked;
Line 44... Line 50...
44
 * enable the txd pin of usart1
50
 * enable the txd pin of usart1
45
 */
51
 */
46
void usart1_EnableTXD(void);
52
void usart1_EnableTXD(void);
Line 47... Line 53...
47
 
53
 
48
/**
54
/**
49
 * send a <string> throught usart1
55
 * send a PGM<string> throught usart1
50
 */
56
 */
Line 51... Line 57...
51
void usart1_puts(char*);
57
void usart1_puts_pgm(const char*);
52
 
58
 
53
/**
59
/**
54
 * transmit interrupt handler
60
 * transmit interrupt handler
Line 74... Line 80...
74
 * request Data through USART in special MK format by adding checksum and
80
 * request Data through USART in special MK format by adding checksum and
75
 * encode data in modified Base64
81
 * encode data in modified Base64
76
 * portions taken and adapted from
82
 * portions taken and adapted from
77
 * http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=FlightCtrl&path=%2Ftags%2FV0.72p%2Fuart.c
83
 * http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=FlightCtrl&path=%2Ftags%2FV0.72p%2Fuart.c
78
 */
84
 */
79
void sendMKData(unsigned char, unsigned char, unsigned char*, unsigned char);
85
//void sendMKData(unsigned char, unsigned char, unsigned char*, unsigned char);
Line 80... Line 86...
80
 
86
 
81
/**
87
/**
82
 * short script to directly send a request thorugh usart including en- and disabling it
88
 * short script to directly send a request thorugh usart including en- and disabling it
83
 * where <address> is the address of the receipient, <label> is which data set to request
89
 * where <address> is the address of the receipient, <label> is which data set to request
84
 * and <ms> represents the milliseconds delay between data
90
 * and <ms> represents the milliseconds delay between data
85
 */
91
 */