esp_ota_app_desc.c 440 B

123456789101112131415161718192021
  1. /*
  2. * SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <assert.h>
  7. #include <sys/param.h>
  8. #include "esp_ota_ops.h"
  9. #include "esp_attr.h"
  10. #include "sdkconfig.h"
  11. const esp_app_desc_t *esp_ota_get_app_description(void)
  12. {
  13. return esp_app_get_description();
  14. }
  15. int esp_ota_get_app_elf_sha256(char* dst, size_t size)
  16. {
  17. return esp_app_get_elf_sha256(dst, size);
  18. }