Rev 1910 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1910 | - | 1 | #ifndef _UART0_H |
2 | #define _UART0_H |
||
3 | |||
2099 | - | 4 | #define TXD_BUFFER_LEN 180 |
5 | #define RXD_BUFFER_LEN 180 |
||
1910 | - | 6 | |
7 | #include <inttypes.h> |
||
8 | |||
9 | //Baud rate of the USART |
||
10 | #define USART0_BAUD 57600 |
||
11 | |||
2099 | - | 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); |
||
1910 | - | 19 | extern int16_t uart_putchar(int8_t c); |
20 | |||
2099 | - | 21 | // extern uint8_t remotePollDisplayLine; |
1910 | - | 22 | |
2099 | - | 23 | extern uint8_t servoTestActive; |
24 | extern uint8_t servoTest[16]; |
||
1910 | - | 25 | |
26 | typedef struct { |
||
2099 | - | 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]; |
||
1910 | - | 31 | }__attribute__((packed)) Data3D_t; |
32 | |||
33 | typedef struct { |
||
2099 | - | 34 | Data3D_t attitude; |
35 | //GPS_INFO_t GPSInfo; |
||
36 | int32_t airpressureHeight; |
||
37 | int16_t batteryVoltage; |
||
38 | }__attribute__((packed)) OSDData_t; |
||
1910 | - | 39 | |
40 | #endif //_UART0_H |