Rev 1645 | Rev 2018 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1645 | Rev 1821 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | #include <inttypes.h> |
9 | #include <inttypes.h> |
Line 10... | Line 10... | ||
10 | 10 | ||
11 | //Baud rate of the USART |
11 | //Baud rate of the USART |
Line 12... | Line 12... | ||
12 | #define USART0_BAUD 57600 |
12 | #define USART0_BAUD 57600 |
13 | 13 | ||
14 | extern void usart0_Init (void); |
14 | extern void usart0_Init(void); |
15 | extern void usart0_TransmitTxData(void); |
15 | extern void usart0_TransmitTxData(void); |
Line 16... | Line 16... | ||
16 | extern void usart0_ProcessRxData(void); |
16 | extern void usart0_ProcessRxData(void); |
Line 17... | Line 17... | ||
17 | extern int16_t uart_putchar(int8_t c); |
17 | extern int16_t uart_putchar(int8_t c); |
18 | 18 | ||
Line 19... | Line 19... | ||
19 | extern uint8_t RemotePollDisplayLine; |
19 | extern uint8_t RemotePollDisplayLine; |
20 | 20 | ||
21 | extern uint8_t motorTestActive; |
21 | extern uint8_t motorTestActive; |
22 | extern uint8_t motorTest[16]; |
22 | extern uint8_t motorTest[16]; |
Line 23... | Line 23... | ||
23 | 23 | ||
Line 24... | Line 24... | ||
24 | typedef struct { |
24 | typedef struct { |
25 | uint8_t Digital[2]; |
25 | uint8_t Digital[2]; |
26 | uint16_t Analog[32]; // Debugvalues |
26 | uint16_t Analog[32]; // Debugvalues |
27 | } __attribute__((packed)) DebugOut_t; |
27 | }__attribute__((packed)) DebugOut_t; |
28 | 28 | ||
29 | extern DebugOut_t DebugOut; |
29 | extern DebugOut_t DebugOut; |
Line 30... | Line 30... | ||
30 | 30 | ||
31 | typedef struct { |
31 | typedef struct { |
32 | int16_t AngleNick; // in 0.1 deg |
32 | int16_t AngleNick; // in 0.1 deg |
33 | int16_t AngleRoll; // in 0.1 deg |
33 | int16_t AngleRoll; // in 0.1 deg |
34 | int16_t Heading; // in 0.1 deg |
34 | int16_t Heading; // in 0.1 deg |
35 | uint8_t reserve[8]; |
35 | uint8_t reserve[8]; |
36 | } __attribute__((packed)) Data3D_t; |
36 | }__attribute__((packed)) Data3D_t; |
37 | 37 | ||
Line 38... | Line 38... | ||
38 | typedef struct { |
38 | typedef struct { |