mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
efuse(esp32): Deprecate esp_efuse_burn_new_values() & esp_efuse_write_random_key()
These functions were used only for esp32 in secure_boot and flash encryption. Use idf efuse APIs instead of efuse regs.
This commit is contained in:

committed by
Angus Gratton

parent
eca878b37f
commit
f339b3fc96
@@ -17,6 +17,14 @@ extern "C" {
|
||||
#include "sdkconfig.h"
|
||||
#include_next "esp_efuse_utility.h"
|
||||
|
||||
#define ESP_EFUSE_CHK(ret) \
|
||||
do \
|
||||
{ \
|
||||
if( ( err = (ret) ) != ESP_OK ) \
|
||||
goto err_exit; \
|
||||
} while( 0 )
|
||||
|
||||
|
||||
/**
|
||||
* @brief Structure range address by blocks
|
||||
*/
|
||||
@@ -139,6 +147,38 @@ esp_err_t esp_efuse_utility_apply_new_coding_scheme(void);
|
||||
*/
|
||||
void esp_efuse_utility_clear_program_registers(void);
|
||||
|
||||
#ifdef CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
|
||||
/**
|
||||
* @brief Writes eFuses to the efuse flash partition.
|
||||
*
|
||||
* Used only when CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH is set.
|
||||
*/
|
||||
void esp_efuse_utility_write_efuses_to_flash(void);
|
||||
|
||||
/**
|
||||
* @brief Loads efuses from efuse flash partition.
|
||||
*
|
||||
* Used only when CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH is set.
|
||||
*/
|
||||
bool esp_efuse_utility_load_efuses_from_flash(void);
|
||||
|
||||
/**
|
||||
* @brief Erase efuse flash partition.
|
||||
*
|
||||
* Used only when CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH is set.
|
||||
*/
|
||||
void esp_efuse_utility_erase_efuses_in_flash(void);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Return the address of a particular efuse block's first read register
|
||||
*
|
||||
* @param[in] block Index of efuse block to look up
|
||||
*
|
||||
* @return a numeric read register address of the first word in the block.
|
||||
*/
|
||||
uint32_t esp_efuse_utility_get_read_register_address(esp_efuse_block_t block);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user