ymodem.h 416 B

123456789101112131415161718192021
  1. #ifndef __YMODEM_H
  2. #define __YMODEM_H
  3. #include "stm32g0xx_hal.h"
  4. #include <stdint.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. // 返回值:0 = OK,<0 = 失败
  9. int32_t Ymodem_ReceiveToW25Qxx(
  10. uint32_t flashStartAddr,
  11. uint32_t flashMaxSize,
  12. uint32_t *pReceivedSize);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif /* __YMODEM_H */