Rev 2055 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1612 | dongfang | 1 | #ifndef _UART0_H |
2 | #define _UART0_H |
||
3 | |||
2159 | - | 4 | #define TXD_BUFFER_LEN 150 |
5 | #define RXD_BUFFER_LEN 150 |
||
1612 | dongfang | 6 | |
7 | #include <inttypes.h> |
||
2055 | - | 8 | #include "ubx.h" |
1612 | dongfang | 9 | |
10 | //Baud rate of the USART |
||
11 | #define USART0_BAUD 57600 |
||
12 | |||
2018 | - | 13 | extern void usart0_init(void); |
14 | extern void usart0_transmitTxData(void); |
||
15 | extern void usart0_processRxData(void); |
||
1612 | dongfang | 16 | extern int16_t uart_putchar(int8_t c); |
17 | |||
2018 | - | 18 | // extern uint8_t remotePollDisplayLine; |
1612 | dongfang | 19 | |
20 | extern uint8_t motorTestActive; |
||
21 | extern uint8_t motorTest[16]; |
||
22 | |||
23 | typedef struct { |
||
2055 | - | 24 | int16_t anglePitch; // in 0.1 deg |
25 | int16_t angleRoll; // in 0.1 deg |
||
26 | int16_t heading; // in 0.1 deg |
||
27 | uint8_t reserved[8]; |
||
1821 | - | 28 | }__attribute__((packed)) Data3D_t; |
1612 | dongfang | 29 | |
2055 | - | 30 | typedef struct { |
31 | Data3D_t attitude; |
||
32 | GPS_INFO_t GPSInfo; |
||
33 | int32_t airpressureHeight; |
||
34 | int16_t batteryVoltage; |
||
35 | }__attribute__((packed)) OSDData_t; |
||
36 | |||
1612 | dongfang | 37 | #endif //_UART0_H |