esp_efuse_custom_table.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include "sdkconfig.h"
  7. #include "esp_efuse.h"
  8. #include <assert.h>
  9. #include "esp_efuse_custom_table.h"
  10. // md5_digest_table 584317af6a850ee16ef6206c139d6cf5
  11. // This file was generated from the file esp_efuse_custom_table.csv. DO NOT CHANGE THIS FILE MANUALLY.
  12. // If you want to change some fields, you need to change esp_efuse_custom_table.csv file
  13. // then run `efuse_common_table` or `efuse_custom_table` command it will generate this file.
  14. // To show efuse_table run the command 'show_efuse_table'.
  15. #define MAX_BLK_LEN CONFIG_EFUSE_MAX_BLK_LEN
  16. // The last free bit in the block is counted over the entire file.
  17. #define LAST_FREE_BIT_BLK3 94
  18. _Static_assert(LAST_FREE_BIT_BLK3 <= MAX_BLK_LEN, "The eFuse table does not match the coding scheme. Edit the table and restart the efuse_common_table or efuse_custom_table command to regenerate the new files.");
  19. static const esp_efuse_desc_t MODULE_VERSION[] = {
  20. {EFUSE_BLK3, 56, 8}, // Module version,
  21. };
  22. static const esp_efuse_desc_t DEVICE_ROLE[] = {
  23. {EFUSE_BLK3, 64, 3}, // Device role,
  24. };
  25. static const esp_efuse_desc_t SETTING_1[] = {
  26. {EFUSE_BLK3, 67, 6}, // Setting 1,
  27. };
  28. static const esp_efuse_desc_t SETTING_2[] = {
  29. {EFUSE_BLK3, 73, 5}, // Setting 2,
  30. };
  31. static const esp_efuse_desc_t CUSTOM_SECURE_VERSION[] = {
  32. {EFUSE_BLK3, 78, 16}, // Custom secure version,
  33. };
  34. const esp_efuse_desc_t* ESP_EFUSE_MODULE_VERSION[] = {
  35. &MODULE_VERSION[0], // Module version
  36. NULL
  37. };
  38. const esp_efuse_desc_t* ESP_EFUSE_DEVICE_ROLE[] = {
  39. &DEVICE_ROLE[0], // Device role
  40. NULL
  41. };
  42. const esp_efuse_desc_t* ESP_EFUSE_SETTING_1[] = {
  43. &SETTING_1[0], // Setting 1
  44. NULL
  45. };
  46. const esp_efuse_desc_t* ESP_EFUSE_SETTING_2[] = {
  47. &SETTING_2[0], // Setting 2
  48. NULL
  49. };
  50. const esp_efuse_desc_t* ESP_EFUSE_CUSTOM_SECURE_VERSION[] = {
  51. &CUSTOM_SECURE_VERSION[0], // Custom secure version
  52. NULL
  53. };