esp_efuse_rtc_calib.c 588 B

1234567891011121314151617181920212223
  1. /*
  2. * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <esp_bit_defs.h>
  7. #include "esp_efuse.h"
  8. #include "esp_efuse_table.h"
  9. int esp_efuse_rtc_calib_get_ver(void)
  10. {
  11. uint32_t result = 0;
  12. esp_efuse_read_field_blob(ESP_EFUSE_BLK_VERSION_MINOR, &result, ESP_EFUSE_BLK_VERSION_MINOR[0]->bit_count); // IDF-5366
  13. return result;
  14. }
  15. esp_err_t esp_efuse_rtc_calib_get_tsens_val(float* tsens_cal)
  16. {
  17. // Currently calibration is not supported on ESP32-C2, IDF-5236
  18. *tsens_cal = 0.0;
  19. return ESP_OK;
  20. }