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

STM32 ADC with DMA fixes #69543

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Conversation

gautierg-st
Copy link
Contributor

This PR fixes some problems that prevented the use of ADC with DMA for series with dma_v2bis DMA types.
Also prevents compilation failure in case a DMA is defined in an ADC dts node, but the macro STM32_ADC_DMA is disabled.

Add a blank define for the case where DMA channels are defined in ADC node
of the dts but STM32_ADC_DMA is not enabled. Otherwise compilation fails.
Also fix the way the DMA channel is configured by using a standard DT
macro, otherwise it doesn't work for dma-v2bis DMA types.

Signed-off-by: Guillaume Gautier <[email protected]>
Macro STM32_DMA_SLOT_BY_IDX should return 0 instead of nothing for
dma v2bis.

Signed-off-by: Guillaume Gautier <[email protected]>
erwango
erwango previously approved these changes Feb 28, 2024
Desvauxm-st
Desvauxm-st previously approved these changes Mar 4, 2024
Use the correct dedicated macros for enabling DMA transfer for STM32H7 and
U5.

Signed-off-by: Guillaume Gautier <[email protected]>
@gautierg-st gautierg-st dismissed stale reviews from Desvauxm-st and erwango via 83141c2 March 8, 2024 07:51
@zephyrbot zephyrbot requested a review from decsny March 8, 2024 07:52
@nashif nashif merged commit 3b50237 into zephyrproject-rtos:main Mar 12, 2024
21 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: DMA Direct Memory Access platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants