feat(adc): supported adc calibration on esp32c5

This commit is contained in:
Armando
2024-12-17 16:03:35 +08:00
committed by Armando (Dou Yiwen)
parent 3bdab3a191
commit b963c0f013
11 changed files with 318 additions and 88 deletions

View File

@@ -11,14 +11,12 @@
extern "C" {
#endif
// TODO: [ESP32C5] IDF-8702
//This is the ADC calibration value version burnt in efuse
#define ESP_EFUSE_ADC_CALIB_VER1 1
#define ESP_EFUSE_ADC_CALIB_VER2 2
#define ESP_EFUSE_ADC_CALIB_VER_MIN ESP_EFUSE_ADC_CALIB_VER1
#define ESP_EFUSE_ADC_CALIB_VER_MAX ESP_EFUSE_ADC_CALIB_VER2
#define ESP_EFUSE_ADC_CALIB_VER_MAX ESP_EFUSE_ADC_CALIB_VER1
#define VER2IDX(ver) ((ver) - 1) // Version number to index number of the array
/**
* @brief Get the RTC calibration efuse version
*