Skip to content

stm32: support GLOBAL ADC DMA signals - #6822

Open
lennlouisgeek wants to merge 1 commit into
embassy-rs:mainfrom
lennlouisgeek:stm32-c5-adc-dma
Open

stm32: support GLOBAL ADC DMA signals#6822
lennlouisgeek wants to merge 1 commit into
embassy-rs:mainfrom
lennlouisgeek:stm32-c5-adc-dma

Conversation

@lennlouisgeek

Copy link
Copy Markdown

Some STM32 metadata, including STM32C5, describes ADC DMA channels using the GLOBAL signal name.

The embassy-stm32 build script previously recognized ADC, ADC1, ADC2, and ADC3, but ignored GLOBAL. Therefore, valid STM32C5 ADC DMA metadata did not generate the required RxDma<ADCx> implementations.

This change maps ADC GLOBAL signals to adc::RxDma and adds an STM32C5 ADC DMA example as compile-time coverage.

Tested with:

cargo build --manifest-path examples/stm32c5/Cargo.toml --bin adc_dma

@embassy-bot

embassy-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

👋 Welcome, @lennlouisgeek, and thanks for opening your first pull request here!

If you haven't already, please give the contributor guide a read.

@Dirbaio

Dirbaio commented Aug 24, 2026

Copy link
Copy Markdown
Member

is there a real difference between C5 ADC and others that justifies the different naming? If not, this is an inconsistency that should be fixed in stm32-data, not workarounded in embassy-stm32.

@lennlouisgeek

lennlouisgeek commented Aug 24, 2026 via email

Copy link
Copy Markdown
Author

@leftger leftger added the e-stm32 Issues for the STM32 family of chips label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e-stm32 Issues for the STM32 family of chips

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants