添加串口读写
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef __SBUS_H__
|
||||
#define __SBUS_H__
|
||||
|
||||
#include "uart_fifo.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct {
|
||||
uart_fifo_t *fifo_in;
|
||||
const char *name;
|
||||
uint16_t ch[18];
|
||||
uint8_t seq;
|
||||
bool valid;
|
||||
uint8_t stage;
|
||||
uint8_t buff[24];
|
||||
} SBUS_IN_t;
|
||||
|
||||
void SBUS_IN_init(SBUS_IN_t *sbus_in, const char *name, uart_fifo_t *fifo_in);
|
||||
|
||||
bool SBUS_IN_update(SBUS_IN_t *sbus_in);
|
||||
|
||||
#endif /* __SBUS_H__ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user