Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2105 - 1
#ifndef _UART_H
2
 #define _UART_H
3
 
4
//addresses
5
#define FC_address      1  //(b)
6
#define NC_address      2  //(c)
7
#define MK3MAG_address  3  //(d)
8
#define BL_CTRL_address 5  //(f)
9
 
10
//Command IDs
11
#define SERIAL_CHANNELS         'y'
12
#define EXTERNAL_CONTROL        'b'
13
 
14
 
15
#define SERIAL "/dev/ttyAMA0"
16
 
17
//struct js_event e;
18
 
19
extern void create_serial_frame(u8 address, u8 cmdID, u16 cmdLength, serial_data_struct* pdata_package);
20
extern void transmit_data(serial_data_struct* pdata_package);
21
extern void encode_data(serial_data_struct* pdata_package);
22
extern void uart_init();
23
 
24
#endif //_UART_H