mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/fix_adc_clock_missing_in_startup_calibration' into 'master'
fix(esp_adc): fix adc clock missing in startup calibration Closes PM-93 See merge request espressif/esp-idf!29993
This commit is contained in:
commit
859d9a89e1
@ -56,6 +56,7 @@ esp_err_t adc_channel_to_io(adc_unit_t unit_id, adc_channel_t channel, int * con
|
|||||||
---------------------------------------------------------------*/
|
---------------------------------------------------------------*/
|
||||||
static __attribute__((constructor)) void adc_hw_calibration(void)
|
static __attribute__((constructor)) void adc_hw_calibration(void)
|
||||||
{
|
{
|
||||||
|
adc_apb_periph_claim();
|
||||||
//Calculate all ICode
|
//Calculate all ICode
|
||||||
for (int i = 0; i < SOC_ADC_PERIPH_NUM; i++) {
|
for (int i = 0; i < SOC_ADC_PERIPH_NUM; i++) {
|
||||||
adc_hal_calibration_init(i);
|
adc_hal_calibration_init(i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user