Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: adc/wifi: esp32s2/esp32c3: call to adc2_init_code_calibration #79074

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wmrsouza
Copy link
Collaborator

Add call to adc2_init_code_calibration() during adc and wifi initialization on esp32s2 and esp32c3

@zephyrbot
Copy link
Collaborator

zephyrbot commented Sep 26, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_espressif zephyrproject-rtos/hal_espressif@1082a69 (zephyr) zephyrproject-rtos/hal_espressif#346 zephyrproject-rtos/hal_espressif#346/files

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_espressif DNM This PR should not be merged (Do Not Merge) labels Sep 26, 2024
Update hal to cover latest features and fixes.

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
@wmrsouza wmrsouza force-pushed the improvement/adc2_init_code_calibration branch from 017d8ea to 59e279c Compare September 26, 2024 21:16
@@ -654,6 +654,12 @@ static int adc_esp32_init(const struct device *dev)

adc_hw_calibration(conf->unit);

#if CONFIG_SOC_SERIES_ESP32S2 || CONFIG_SOC_SERIES_ESP32C3
if (conf->unit == 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put this hardcoded value behind of a define and explain its reason?

Add call to adc2_init_code_calibration during adc initialization on esp32s2
and esp32c3

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Add call to adc2_init_code_calibration during wifi initialization on
esp32s2 and esp32c3

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
@wmrsouza wmrsouza force-pushed the improvement/adc2_init_code_calibration branch from 59e279c to db211d2 Compare September 26, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ADC Analog-to-Digital Converter (ADC) area: Wi-Fi Wi-Fi DNM This PR should not be merged (Do Not Merge) manifest manifest-hal_espressif platform: ESP32 Espressif ESP32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants