Skip to content

samples: adc_dt: add overlay for STM32F0-DISCO #90265

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

Merged

Conversation

sudarsan-22
Copy link
Contributor

This PR enables ADC1 on the STM32F0-DISCO board by updating the board DTS and YAML to support ADC on PA0 (ADC_IN0). It also adds a board-specific overlay for the adc_dt sample to enable ADC channel usage on this board.

Tested and verified with the adc_dt sample.

@github-actions github-actions bot added platform: STM32 ST Micro STM32 area: ADC Analog-to-Digital Converter (ADC) area: Samples Samples labels May 21, 2025
@sudarsan-22 sudarsan-22 marked this pull request as draft May 22, 2025 12:00
@sudarsan-22 sudarsan-22 marked this pull request as ready for review May 22, 2025 12:01
@sudarsan-22
Copy link
Contributor Author

sudarsan-22 commented May 27, 2025

@anangl @vcgomes @etienne-lms Gentle remainder Please review this PR

anangl
anangl previously approved these changes May 27, 2025
Copy link
Collaborator

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

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

@sudarsan-22, could you remove the indentation tabulations in the commit message body?
Otherwise LGTM.

@sudarsan-22 sudarsan-22 force-pushed the adc-add-support-stm32f0 branch from b464b9b to bc20bb4 Compare May 27, 2025 07:29
@sudarsan-22
Copy link
Contributor Author

sudarsan-22 commented May 27, 2025

@sudarsan-22, could you remove the indentation tabulations in the commit message body? Otherwise LGTM.

Sure @etienne-lms, now updated the commit message . Thanks for the review!

Add board-specific overlay file for the adc_dt sample
on the STM32F0-DISCO board to enable ADC channel support.

Signed-off-by: Sudarsan N <sudarsansamy2002@gmail.com>
Copy link

Copy link
Collaborator

@mathieuchopstm mathieuchopstm left a comment

Choose a reason for hiding this comment

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

Tested OK on HW.

@kartben kartben merged commit 8cf71d0 into zephyrproject-rtos:main May 27, 2025
21 checks passed
Copy link

Hi @sudarsan-22!
Congratulations on getting your very first Zephyr pull request merged 🎉🥳. This is a fantastic achievement, and we're thrilled to have you as part of our community!

To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge.

Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁

@sudarsan-22 sudarsan-22 deleted the adc-add-support-stm32f0 branch May 28, 2025 04:20
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: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants