mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-13 12:46:04 +03:00
346 lines
11 KiB
C
346 lines
11 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
|
|
/** \defgroup efuse_APIs efuse APIs
|
|
* @brief ESP32 efuse read/write APIs
|
|
* @attention
|
|
*
|
|
*/
|
|
|
|
/** @addtogroup efuse_APIs
|
|
* @{
|
|
*/
|
|
|
|
typedef enum {
|
|
ETS_EFUSE_KEY_PURPOSE_USER = 0,
|
|
ETS_EFUSE_KEY_PURPOSE_RESERVED = 1,
|
|
ETS_EFUSE_KEY_PURPOSE_XTS_AES_256_KEY_1 = 2,
|
|
ETS_EFUSE_KEY_PURPOSE_XTS_AES_256_KEY_2 = 3,
|
|
ETS_EFUSE_KEY_PURPOSE_XTS_AES_128_KEY = 4,
|
|
ETS_EFUSE_KEY_PURPOSE_HMAC_DOWN_ALL = 5,
|
|
ETS_EFUSE_KEY_PURPOSE_HMAC_DOWN_JTAG = 6,
|
|
ETS_EFUSE_KEY_PURPOSE_HMAC_DOWN_DIGITAL_SIGNATURE = 7,
|
|
ETS_EFUSE_KEY_PURPOSE_HMAC_UP = 8,
|
|
ETS_EFUSE_KEY_PURPOSE_SECURE_BOOT_DIGEST0 = 9,
|
|
ETS_EFUSE_KEY_PURPOSE_SECURE_BOOT_DIGEST1 = 10,
|
|
ETS_EFUSE_KEY_PURPOSE_SECURE_BOOT_DIGEST2 = 11,
|
|
ETS_EFUSE_KEY_PURPOSE_MAX,
|
|
} ets_efuse_purpose_t;
|
|
|
|
typedef enum {
|
|
ETS_EFUSE_BLOCK0 = 0,
|
|
ETS_EFUSE_MAC_SPI_SYS_0 = 1,
|
|
ETS_EFUSE_BLOCK_SYS_DATA = 2,
|
|
ETS_EFUSE_BLOCK_USR_DATA = 3,
|
|
ETS_EFUSE_BLOCK_KEY0 = 4,
|
|
ETS_EFUSE_BLOCK_KEY1 = 5,
|
|
ETS_EFUSE_BLOCK_KEY2 = 6,
|
|
ETS_EFUSE_BLOCK_KEY3 = 7,
|
|
ETS_EFUSE_BLOCK_KEY4 = 8,
|