fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12

By design, it's 12 dB. There're errors among chips, so the actual
attenuation will be 11dB more or less
This commit is contained in:
Armando
2023-11-07 11:02:35 +08:00
parent f8e9443cbd
commit 40d021e39d
18 changed files with 33 additions and 32 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ Don't put any other code into this file. */
static __attribute__((constructor)) void adc2_init_code_calibration(void)
{
const adc_ll_num_t adc_n = ADC_NUM_2;
const adc_atten_t atten = ADC_ATTEN_DB_11;
const adc_atten_t atten = ADC_ATTEN_DB_12;
const adc_channel_t channel = 0;
adc_cal_offset(adc_n, channel, atten);
}