first commit

This commit is contained in:
2025-07-03 23:58:20 +08:00
commit ce2b3cdfd4
444 changed files with 65256 additions and 0 deletions

32
application/ws63/hsf/xmodem.h Executable file
View File

@ -0,0 +1,32 @@
/* xmodem.h
*
* Copyright (C) 2017 ShangHai High-flying Electronics Technology Co.,Ltd.
*
* This file is part of HSF.
*
*/
#ifndef _XMODEM_H_
#define _XMODEM_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef int (*xmodem_send_callback_t)(unsigned char *data, int len);
typedef int (*xmodem_recv_callback_t)(unsigned char *data, int len, int timeout);
typedef int (*xmodem_setfile_callback_t)(unsigned char *data, int len, unsigned int offset);
int xmodem_receive_process(int wait, xmodem_send_callback_t send, xmodem_recv_callback_t recv, xmodem_setfile_callback_t write);
#ifdef __cplusplus
}
#endif
#endif/* _XMODEM_H_ */