fix(bootloader_support): Add missing c linkage to some headers

Merges https://github.com/espressif/esp-idf/pull/13890
This commit is contained in:
andylinpersonal
2024-06-01 23:48:58 +08:00
committed by Konstantin Kondrashov
parent 13e5b6f335
commit 100f23a1c1
8 changed files with 65 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2018-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -9,6 +9,11 @@
#include "esp_image_format.h"
#include "bootloader_config.h"
#ifdef __cplusplus
extern "C"
{
#endif
/**
* @brief Load partition table.
*
@@ -16,7 +21,7 @@
* OTA data partition, factory app partition, and test app partition.
*
* @param[out] bs Bootloader state structure used to save read data.
* @return Return true if the partition table was succesfully loaded and MD5 checksum is valid.
* @return Return true if the partition table was successfully loaded and MD5 checksum is valid.
*/
bool bootloader_utility_load_partition_table(bootloader_state_t* bs);
@@ -120,3 +125,7 @@ void bootloader_debug_buffer(const void *buffer, size_t length, const char *labe
* @return ESP_OK if secure boot digest is generated successfully.
*/
esp_err_t bootloader_sha256_flash_contents(uint32_t flash_offset, uint32_t len, uint8_t *digest);
#ifdef __cplusplus
}
#endif