esp_efuse_custom_table.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // Copyright 2017-2018 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. #include "sdkconfig.h"
  15. #include "esp_efuse.h"
  16. #include <assert.h>
  17. #include "esp_efuse_custom_table.h"
  18. // md5_digest_table 584317af6a850ee16ef6206c139d6cf5
  19. // This file was generated from the file esp_efuse_custom_table.csv. DO NOT CHANGE THIS FILE MANUALLY.
  20. // If you want to change some fields, you need to change esp_efuse_custom_table.csv file
  21. // then run `efuse_common_table` or `efuse_custom_table` command it will generate this file.
  22. // To show efuse_table run the command 'show_efuse_table'.
  23. #define MAX_BLK_LEN CONFIG_EFUSE_MAX_BLK_LEN
  24. // The last free bit in the block is counted over the entire file.
  25. #define LAST_FREE_BIT_BLK3 94
  26. _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.");
  27. static const esp_efuse_desc_t MODULE_VERSION[] = {
  28. {EFUSE_BLK3, 56, 8}, // Module version,
  29. };
  30. static const esp_efuse_desc_t DEVICE_ROLE[] = {
  31. {EFUSE_BLK3, 64, 3}, // Device role,
  32. };
  33. static const esp_efuse_desc_t SETTING_1[] = {
  34. {EFUSE_BLK3, 67, 6}, // Setting 1,
  35. };
  36. static const esp_efuse_desc_t SETTING_2[] = {
  37. {EFUSE_BLK3, 73, 5}, // Setting 2,
  38. };
  39. static const esp_efuse_desc_t CUSTOM_SECURE_VERSION[] = {
  40. {EFUSE_BLK3, 78, 16}, // Custom secure version,
  41. };
  42. const esp_efuse_desc_t* ESP_EFUSE_MODULE_VERSION[] = {
  43. &MODULE_VERSION[0], // Module version
  44. NULL
  45. };
  46. const esp_efuse_desc_t* ESP_EFUSE_DEVICE_ROLE[] = {
  47. &DEVICE_ROLE[0], // Device role
  48. NULL
  49. };
  50. const esp_efuse_desc_t* ESP_EFUSE_SETTING_1[] = {
  51. &SETTING_1[0], // Setting 1
  52. NULL
  53. };
  54. const esp_efuse_desc_t* ESP_EFUSE_SETTING_2[] = {
  55. &SETTING_2[0], // Setting 2
  56. NULL
  57. };
  58. const esp_efuse_desc_t* ESP_EFUSE_CUSTOM_SECURE_VERSION[] = {
  59. &CUSTOM_SECURE_VERSION[0], // Custom secure version
  60. NULL
  61. };