添加串口读写

This commit is contained in:
2024-02-29 00:45:47 +08:00
parent 5b87198936
commit deafcfed1a
62 changed files with 20818 additions and 22162 deletions
+23
View File
@@ -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__ */