Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2108 - 1
#ifndef _UART0_H
2
#define _UART0_H
3
 
4
#define TXD_BUFFER_LEN  180
5
#define RXD_BUFFER_LEN  180
6
 
7
#include <inttypes.h>
8
 
9
//Baud rate of the USART
10
#define USART0_BAUD 57600
11
 
12
#define DISPLAYBUFFSIZE 80
13
extern int8_t displayBuff[DISPLAYBUFFSIZE];
14
extern uint8_t dispPtr;
15
 
16
extern void usart0_init(void);
17
extern void usart0_transmitTxData(void);
18
extern void usart0_processRxData(void);
19
extern int16_t uart_putchar(int8_t c);
20
 
21
// extern uint8_t remotePollDisplayLine;
22
 
23
extern uint8_t servoTestActive;
24
extern uint8_t servoTest[16];
25
 
26
typedef struct {
27
  int16_t anglePitch; // in 0.1 deg
28
  int16_t angleRoll;  // in 0.1 deg
29
  int16_t heading;    // in 0.1 deg
30
  uint8_t reserved[8];
31
}__attribute__((packed)) Data3D_t;
32
 
33
typedef struct {
34
  Data3D_t attitude;
35
  //GPS_INFO_t GPSInfo;
36
  int32_t airpressureHeight;
37
  int16_t batteryVoltage;
38
}__attribute__((packed)) OSDData_t;
39
 
40
#endif //_UART0_H