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

feat: Add STM32H7 SPDIFRX support #518

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

elagil
Copy link
Contributor

@elagil elagil commented Aug 22, 2024

The STM32H7 SPDIFRX peripheral is slightly different from the existing one in the F4 and F7 series, so this adds support for the new version. The change is in the data register that can now have three different mappings, depending on a setting in the control register.

There is one problem that I don't know how to solve. This does not yet enable the spdifrx feature flag when building for (in my case) the STM32H723VG in embassy. I am trying to implement support for SPDIFRX there and this is the chip I will test it on.
I think that's not true, only my rust-analyzer tricking me. The verbose build does show --cfg spdifrx and -cfg spdifrx_h7.

@embassy-ci
Copy link

embassy-ci bot commented Aug 22, 2024

Use SPDIFRX1 as the peripheral name
Map the SPDIF_RX DMA channels to SPDIFRX1
@embassy-ci
Copy link

embassy-ci bot commented Aug 23, 2024

@Dirbaio Dirbaio added this pull request to the merge queue Sep 10, 2024
Merged via the queue into embassy-rs:main with commit a1b2bd5 Sep 10, 2024
1 check passed
@elagil elagil deleted the feat_stm32h7_spdifrx branch September 10, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants