Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2017 → Rev 2018

/branches/dongfang_FC_rewrite/uart0.h
11,12 → 11,12
//Baud rate of the USART
#define USART0_BAUD 57600
 
extern void usart0_Init(void);
extern void usart0_TransmitTxData(void);
extern void usart0_ProcessRxData(void);
extern void usart0_init(void);
extern void usart0_transmitTxData(void);
extern void usart0_processRxData(void);
extern int16_t uart_putchar(int8_t c);
 
extern uint8_t RemotePollDisplayLine;
// extern uint8_t remotePollDisplayLine;
 
extern uint8_t motorTestActive;
extern uint8_t motorTest[16];
23,25 → 23,16
 
typedef struct {
uint8_t digital[2];
uint16_t analog[32]; // Debugvalues
uint16_t analog[32]; // debug values
}__attribute__((packed)) DebugOut_t;
 
extern DebugOut_t debugOut;
 
typedef struct {
int16_t AngleNick; // in 0.1 deg
int16_t AngleRoll; // in 0.1 deg
int16_t Heading; // in 0.1 deg
uint8_t reserve[8];
int16_t anglePitch; // in 0.1 deg
int16_t angleRoll; // in 0.1 deg
int16_t heading; // in 0.1 deg
uint8_t reserved[8];
}__attribute__((packed)) Data3D_t;
 
typedef struct {
uint8_t SWMajor;
uint8_t SWMinor;
uint8_t ProtoMajor;
uint8_t ProtoMinor;
uint8_t SWPatch;
uint8_t Reserved[5];
}__attribute__((packed)) UART_VersionInfo_t;
 
#endif //_UART0_H