iap.h 736 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-02-12 19813 the first version
  9. */
  10. #ifndef APPLICATIONS_IAP_IAP_H_
  11. #define APPLICATIONS_IAP_IAP_H_
  12. uint8_t copy_app_to_bak(uint8_t bak_num);
  13. uint8_t write_app_from_bak(uint8_t bak_num);
  14. void HexStrToByte(const char *source, int sourceLen,uint8_t datalen);
  15. void rt_kprintf_spi_flash(uint32_t addr,uint16_t lenght);
  16. void rt_kprintf_onchip_flash(uint32_t addr, uint16_t lenght);
  17. uint8_t ucMCU_FlashWrite_WithAddr(uint32_t FlashAddr, uint8_t *pSrcAddr, uint16_t uiDataLen);
  18. void MyErase_page(uint32_t pageaddr, uint32_t num);
  19. #endif /* APPLICATIONS_IAP_IAP_H_ */