Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1910 | - | 1 | #ifndef _UART0_H |
2 | #define _UART0_H |
||
3 | |||
4 | // must be at least 4('#'+Addr+'CmdID'+'\r')+ (80 * 4)/3 = 111 bytes |
||
5 | #define TXD_BUFFER_LEN 150 |
||
6 | #define RXD_BUFFER_LEN 150 |
||
7 | |||
8 | #include <inttypes.h> |
||
9 | |||
10 | //Baud rate of the USART |
||
11 | #define USART0_BAUD 57600 |
||
12 | |||
13 | extern void usart0_Init(void); |
||
14 | extern void usart0_TransmitTxData(void); |
||
15 | extern void usart0_ProcessRxData(void); |
||
16 | extern int16_t uart_putchar(int8_t c); |
||
17 | |||
18 | extern uint8_t RemotePollDisplayLine; |
||
19 | |||
20 | extern uint8_t outputTestActive; |
||
21 | extern uint8_t outputTest[16]; |
||
22 | |||
23 | typedef struct { |
||
24 | uint8_t Digital[2]; |
||
25 | uint16_t Analog[32]; // Debugvalues |
||
26 | }__attribute__((packed)) DebugOut_t; |
||
27 | |||
28 | extern DebugOut_t DebugOut; |
||
29 | |||
30 | typedef struct { |
||
31 | int16_t AngleNick; // in 0.1 deg |
||
32 | int16_t AngleRoll; // in 0.1 deg |
||
33 | int16_t Heading; // in 0.1 deg |
||
34 | uint8_t reserve[8]; |
||
35 | }__attribute__((packed)) Data3D_t; |
||
36 | |||
37 | typedef struct { |
||
38 | uint8_t SWMajor; |
||
39 | uint8_t SWMinor; |
||
40 | uint8_t ProtoMajor; |
||
41 | uint8_t ProtoMinor; |
||
42 | uint8_t SWPatch; |
||
43 | uint8_t Reserved[5]; |
||
44 | }__attribute__((packed)) UART_VersionInfo_t; |
||
45 | |||
46 | #endif //_UART0_H |