esp_efuse_test_table.c 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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_test_table.h"
  10. // md5_digest_table df1ecf346aec29cf593e2f81dc4cd5e4
  11. // This file was generated from the file esp_efuse_test_table.csv. DO NOT CHANGE THIS FILE MANUALLY.
  12. // If you want to change some fields, you need to change esp_efuse_test_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_BLK1 88
  18. #define LAST_FREE_BIT_BLK2 167
  19. #define LAST_FREE_BIT_BLK3 88
  20. _Static_assert(LAST_FREE_BIT_BLK1 <= 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.");
  21. _Static_assert(LAST_FREE_BIT_BLK2 <= 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.");
  22. _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.");
  23. static const esp_efuse_desc_t TEST1_LEN_8[] = {
  24. {EFUSE_BLK3, 0, 8}, // TEST field,
  25. };
  26. static const esp_efuse_desc_t TEST2_LEN_16[] = {
  27. {EFUSE_BLK3, 10, 8}, // TEST field,
  28. {EFUSE_BLK3, 80, 8}, // TEST field,
  29. };
  30. static const esp_efuse_desc_t TEST3_LEN_6[] = {
  31. {EFUSE_BLK3, 22, 6}, // TEST field,
  32. };
  33. static const esp_efuse_desc_t TEST4_LEN_182[] = {
  34. {EFUSE_BLK1, 22, 49}, // TEST field,
  35. {EFUSE_BLK2, 128, 39}, // TEST field,
  36. {EFUSE_BLK1, 71, 17}, // TEST field,
  37. {EFUSE_BLK1, 19, 1}, // TEST field,
  38. {EFUSE_BLK1, 0, 16}, // TEST field,
  39. {EFUSE_BLK2, 0, 17}, // TEST field,
  40. {EFUSE_BLK2, 60, 43}, // TEST field,
  41. };
  42. static const esp_efuse_desc_t TEST5_LEN_1[] = {
  43. {EFUSE_BLK1, 16, 1}, // TEST field,
  44. };
  45. static const esp_efuse_desc_t TEST6_LEN_17[] = {
  46. {EFUSE_BLK1, 17, 1}, // TEST field,
  47. {EFUSE_BLK2, 17, 2}, // TEST field,
  48. {EFUSE_BLK3, 29, 4}, // TEST field,
  49. {EFUSE_BLK2, 31, 3}, // TEST field,
  50. {EFUSE_BLK3, 60, 6}, // TEST field,
  51. {EFUSE_BLK2, 127, 1}, // TEST field,
  52. };
  53. const esp_efuse_desc_t* ESP_EFUSE_TEST1_LEN_8[] = {
  54. &TEST1_LEN_8[0], // TEST field
  55. NULL
  56. };
  57. const esp_efuse_desc_t* ESP_EFUSE_TEST2_LEN_16[] = {
  58. &TEST2_LEN_16[0], // TEST field
  59. &TEST2_LEN_16[1], // TEST field
  60. NULL
  61. };
  62. const esp_efuse_desc_t* ESP_EFUSE_TEST3_LEN_6[] = {
  63. &TEST3_LEN_6[0], // TEST field
  64. NULL
  65. };
  66. const esp_efuse_desc_t* ESP_EFUSE_TEST4_LEN_182[] = {
  67. &TEST4_LEN_182[0], // TEST field
  68. &TEST4_LEN_182[1], // TEST field
  69. &TEST4_LEN_182[2], // TEST field
  70. &TEST4_LEN_182[3], // TEST field
  71. &TEST4_LEN_182[4], // TEST field
  72. &TEST4_LEN_182[5], // TEST field
  73. &TEST4_LEN_182[6], // TEST field
  74. NULL
  75. };
  76. const esp_efuse_desc_t* ESP_EFUSE_TEST5_LEN_1[] = {
  77. &TEST5_LEN_1[0], // TEST field
  78. NULL
  79. };
  80. const esp_efuse_desc_t* ESP_EFUSE_TEST6_LEN_17[] = {
  81. &TEST6_LEN_17[0], // TEST field
  82. &TEST6_LEN_17[1], // TEST field
  83. &TEST6_LEN_17[2], // TEST field
  84. &TEST6_LEN_17[3], // TEST field
  85. &TEST6_LEN_17[4], // TEST field
  86. &TEST6_LEN_17[5], // TEST field
  87. NULL
  88. };