Skip to content

Commit 73cdfbf

Browse files
committed
esp_adc_cal/Add eFuse functionality
This commit updates the esp_adc_cal ocmponent to support new calibration methods which utilize calibratoin values stored in eFuse. This commit includes LUT mode
1 parent ca3faa6 commit 73cdfbf

File tree

12 files changed

+1008
-329
lines changed

12 files changed

+1008
-329
lines changed

components/esp_adc_cal/Kconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
menu "ADC-Calibration"
2+
3+
config ADC_CAL_EFUSE_TP_DISABLE
4+
bool "Disable Two Point values"
5+
default "n"
6+
help
7+
Some ESP32s have Two Point calibration values burned into eFuse. Enabling
8+
this option will prevent the ADC calibration component from using Two Point
9+
values if they are available.
10+
11+
config ADC_CAL_EFUSE_VREF_DISABLE
12+
bool "Disable eFuse Vref"
13+
default "n"
14+
help
15+
Some ESP32s have ADC Vref burned into eFuse. Enabling this option will
16+
prevent the ADC calibration component from using eFuse Vref if they are
17+
available.
18+
19+
config ADC_CAL_DEFAULT_VREF_DISABLE
20+
bool "Disable Default Vref"
21+
default "n"
22+
help
23+
The esp_adc_cal_characterize() function requires the user to provide a
24+
vref_default argument to be used if eFuse values are unavailable. Enabling
25+
this option will prevent the ADC calibration component from using the
26+
vref_default argument. Note that if eFuse values are also unavailabe,
27+
the esp_adc_cal_characterize will trigger an abort.
28+
29+
config ADC_CAL_NO_BLK3_RESERVE_FLAG
30+
bool "EFUSE_BLK3_PART_RESERVE not set"
31+
default "n"
32+
help
33+
By default, ESP32s will have the EFUSE_BLK3_PART_RESERVE flag set if it
34+
uses BLK3 of eFuse to store Two Point values. Some ESP32s do not set this
35+
flag. Enable this option if that is the case
36+
37+
endmenu # ADC-Calibration

0 commit comments

Comments
 (0)