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

adc: esp32c3: fix overlay and adc driver calib setup #84653

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

sylvioalves
Copy link
Collaborator

@sylvioalves sylvioalves commented Jan 28, 2025

As a continuation of #84254, remove ADC2 support
for this remaining ESP32C3 based board targets.

This also changes ADC driver to delete previous calib curve in case channel_setup is run again.

@zephyrbot
Copy link
Collaborator

zephyrbot commented Jan 28, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff

All manifest checks OK

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 Jan 28, 2025
@sylvioalves sylvioalves changed the title boards: esp32c3: remove invalid adc1 entry. adc: esp32c3: fix overlay and adc driver calib setup Jan 28, 2025
@sylvioalves sylvioalves force-pushed the bugfix/adc_esp32c3 branch 2 times, most recently from 3a03a6e to dbbb983 Compare January 28, 2025 17:51
@sylvioalves sylvioalves marked this pull request as ready for review January 28, 2025 17:51
@zephyrbot zephyrbot added platform: ESP32 Espressif ESP32 area: ADC Analog-to-Digital Converter (ADC) area: Samples Samples and removed DNM This PR should not be merged (Do Not Merge) labels Jan 28, 2025
wmrsouza
wmrsouza previously approved these changes Jan 28, 2025
@kartben
Copy link
Collaborator

kartben commented Jan 28, 2025

@sylvioalves i believe this overlaps with the work in #84380

@sylvioalves
Copy link
Collaborator Author

sylvioalves commented Jan 28, 2025

@sylvioalves i believe this overlaps with the work in #84380

It does, but this is fixing something else additional issues. While that PR is still -1, I think we can proceed with this.

Build is currently failing for esp32c3 ADC.

raffarost
raffarost previously approved these changes Jan 28, 2025
uLipe
uLipe previously approved these changes Jan 28, 2025
anangl
anangl previously approved these changes Jan 28, 2025
marekmatej
marekmatej previously approved these changes Jan 28, 2025
Copy link
Collaborator

@kartben kartben left a comment

Choose a reason for hiding this comment

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

Remove ADC2 support (identified as adc1 entry)
for additional ESP32-C3 based board targets.
Other boards have those instances already deleted.

Signed-off-by: Sylvio Alves <[email protected]>
In case channel_setup is called with a new attenuation
config, make sure previous calibration scheme is deleted properly.

Signed-off-by: Sylvio Alves <[email protected]>
@kartben kartben merged commit e472fb6 into zephyrproject-rtos:main Jan 30, 2025
24 checks passed
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: Samples Samples platform: ESP32 Espressif ESP32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants