esp_efuse_test_table.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 7d587827a6f6134241dce7d3713b3edc
  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 128
  18. #define LAST_FREE_BIT_BLK2 128
  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_BLK1, 89, 39}, // TEST field,
  36. {EFUSE_BLK1, 71, 18}, // TEST field,
  37. {EFUSE_BLK1, 0, 16}, // TEST field,
  38. {EFUSE_BLK2, 0, 17}, // TEST field,
  39. {EFUSE_BLK2, 60, 43}, // TEST field,
  40. };
  41. static const esp_efuse_desc_t TEST5_LEN_1[] = {
  42. {EFUSE_BLK1, 16, 1}, // TEST field,
  43. };
  44. static const esp_efuse_desc_t TEST6_LEN_17[] = {
  45. {EFUSE_BLK1, 17, 1}, // TEST field,
  46. {EFUSE_BLK2, 17, 2}, // TEST field,
  47. {EFUSE_BLK3, 29, 4}, // TEST field,
  48. {EFUSE_BLK2, 31, 3}, // TEST field,
  49. {EFUSE_BLK3, 60, 6}, // TEST field,
  50. {EFUSE_BLK2, 127, 1}, // TEST field,
  51. };
  52. const esp_efuse_desc_t* ESP_EFUSE_TEST1_LEN_8[] = {
  53. &TEST1_LEN_8[0], // TEST field
  54. NULL
  55. };
  56. const esp_efuse_desc_t* ESP_EFUSE_TEST2_LEN_16[] = {
  57. &TEST2_LEN_16[0], // TEST field
  58. &TEST2_LEN_16[1], // TEST field
  59. NULL
  60. };
  61. const esp_efuse_desc_t* ESP_EFUSE_TEST3_LEN_6[] = {
  62. &TEST3_LEN_6[0], // TEST field
  63. NULL
  64. };
  65. const esp_efuse_desc_t* ESP_EFUSE_TEST4_LEN_182[] = {
  66. &TEST4_LEN_182[0], // TEST field
  67. &TEST4_LEN_182[1], // TEST field
  68. &TEST4_LEN_182[2], // TEST field
  69. &TEST4_LEN_182[3], // TEST field
  70. &TEST4_LEN_182[4], // TEST field
  71. &TEST4_LEN_182[5], // TEST field
  72. NULL
  73. };
  74. const esp_efuse_desc_t* ESP_EFUSE_TEST5_LEN_1[] = {
  75. &TEST5_LEN_1[0], // TEST field
  76. NULL
  77. };
  78. const esp_efuse_desc_t* ESP_EFUSE_TEST6_LEN_17[] = {
  79. &TEST6_LEN_17[0], // TEST field
  80. &TEST6_LEN_17[1], // TEST field
  81. &TEST6_LEN_17[2], // TEST field
  82. &TEST6_LEN_17[3], // TEST field
  83. &TEST6_LEN_17[4], // TEST field
  84. &TEST6_LEN_17[5], // TEST field
  85. NULL
  86. };