bugfix(adc): missing ranges of ADC codes in ESP32

This commit is contained in:
fuzhibo
2020-09-18 18:31:52 +08:00
committed by bot
parent ff4d82c7d2
commit 9cd5e6f8c9
6 changed files with 89 additions and 51 deletions

View File

@@ -242,6 +242,9 @@ void i2s_hal_config_param(i2s_hal_context_t *hal, const i2s_config_t *i2s_config
}
if (i2s_config->mode & I2S_MODE_ADC_BUILT_IN) {
i2s_ll_build_in_adc_ena(hal->dev);
i2s_ll_set_rx_chan_mod(hal->dev, 1);
i2s_ll_set_rx_fifo_mod(hal->dev, 1);
i2s_ll_set_rx_mono(hal->dev, 0);
}
// Buildin ADC and DAC have nothing to do with communication format configuration.
return;