esp_efuse.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright 2019 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #pragma once
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /**
  19. * @brief Type of eFuse blocks for ESP32
  20. */
  21. typedef enum {
  22. EFUSE_BLK0 = 0, /**< Number of eFuse block. Reserved. */
  23. EFUSE_BLK1 = 1, /**< Number of eFuse block. Used for Flash Encryption. If not using that Flash Encryption feature, they can be used for another purpose. */
  24. EFUSE_BLK_KEY0 = 1, /**< Number of eFuse block. Used for Flash Encryption. If not using that Flash Encryption feature, they can be used for another purpose. */
  25. EFUSE_BLK_ENCRYPT_FLASH = 1, /**< Number of eFuse block. Used for Flash Encryption. If not using that Flash Encryption feature, they can be used for another purpose. */
  26. EFUSE_BLK2 = 2, /**< Number of eFuse block. Used for Secure Boot. If not using that Secure Boot feature, they can be used for another purpose. */
  27. EFUSE_BLK_KEY1 = 2, /**< Number of eFuse block. Used for Secure Boot. If not using that Secure Boot feature, they can be used for another purpose. */
  28. EFUSE_BLK_SECURE_BOOT = 2, /**< Number of eFuse block. Used for Secure Boot. If not using that Secure Boot feature, they can be used for another purpose. */
  29. EFUSE_BLK3 = 3, /**< Number of eFuse block. Uses for the purpose of the user. */
  30. EFUSE_BLK_KEY2 = 3, /**< Number of eFuse block. Uses for the purpose of the user. */
  31. EFUSE_BLK_KEY_MAX = 4,
  32. EFUSE_BLK_MAX = 4,
  33. } esp_efuse_block_t;
  34. /**
  35. * @brief Type of coding scheme
  36. */
  37. typedef enum {
  38. EFUSE_CODING_SCHEME_NONE = 0, /**< None */
  39. EFUSE_CODING_SCHEME_3_4 = 1, /**< 3/4 coding */
  40. EFUSE_CODING_SCHEME_REPEAT = 2, /**< Repeat coding */
  41. } esp_efuse_coding_scheme_t;
  42. #ifdef __cplusplus
  43. }
  44. #endif