luat_fota_air101.c 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include "string.h"
  2. #include "wm_include.h"
  3. #include "wm_crypto_hard.h"
  4. #include "aes.h"
  5. #include "wm_osal.h"
  6. #include "wm_regs.h"
  7. #include "wm_debug.h"
  8. #include "wm_crypto_hard.h"
  9. #include "wm_internal_flash.h"
  10. #include "wm_pmu.h"
  11. #include "wm_fwup.h"
  12. #include "luat_base.h"
  13. #include "luat_crypto.h"
  14. #define LUAT_LOG_TAG "fota"
  15. #include "luat_log.h"
  16. #include "FreeRTOS.h"
  17. #include "task.h"
  18. #include "luat_fota.h"
  19. int luat_fota_init(uint32_t start_address, uint32_t len, luat_spi_device_t* spi_device, const char *path, uint32_t pathlen) {
  20. return -1;
  21. }
  22. int luat_fota_write(uint8_t *data, uint32_t len) {
  23. return -1;
  24. }
  25. int luat_fota_done(void) {
  26. return -1;
  27. }
  28. int luat_fota_end(uint8_t is_ok) {
  29. return -1;
  30. }
  31. uint8_t luat_fota_wait_ready(void) {
  32. return 0;
  33. }