Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources

This commit is contained in:
2026-07-06 11:30:13 +08:00
commit e76462eeb7
3451 changed files with 1415300 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#ifndef _XMODEM_LIB_H_
#define _XMODEM_LIB_H_
#ifdef __cplusplus
extern "C" {
#endif
enum xmodem_flags {
XMODEM_START,
XMODEM_ACK,
XMODEM_NAK,
XMODEM_STOP,
};
struct xmodem_hdl {
void (*out)(uint8 data);
uint8(*in)(uint32 tmo, int32 *err);
uint8 pktno;
};
int32 xmodem_receive(struct xmodem_hdl *xmodem, enum xmodem_flags flags, uint8 *buff, int32 size);
int32 xmodem_fwupgrade_hdl(const char *cmd, char *argv[], uint32 count);
void xmodem_stop(struct xmodem_hdl *xmodem);
#ifdef __cplusplus
}
#endif
#endif