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

Support for STM32 SPDIFRX #3280

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

elagil
Copy link
Contributor

@elagil elagil commented Aug 24, 2024

This adds support for the STM32 SPDIFRX peripheral.

Requires embassy-rs/stm32-data#518

@elagil elagil force-pushed the feat_spdifrx_driver branch 2 times, most recently from 590c608 to f4ac473 Compare August 28, 2024 21:14
@kalkyl
Copy link
Contributor

kalkyl commented Sep 10, 2024

This is great! Do you have a basic example of how to use it?

@elagil
Copy link
Contributor Author

elagil commented Sep 10, 2024

@kalkyl Yes, I will make one for the STM32H7 + SAI (which can use the SPDIFRX symbol clock), but the SPDIFRX feature is not yet complete.

It is missing some sort of left/right detection, otherwise left and right are randomly assigned, depending on what channel the first frame was meant for.

@kalkyl
Copy link
Contributor

kalkyl commented Sep 10, 2024

@kalkyl Yes, I will make one for the STM32H7 + SAI (which can use the SPDIFRX symbol clock), but the SPDIFRX feature is not yet complete.

It is missing some sort of left/right detection, otherwise left and right are randomly assigned, depending on what channel the first frame was meant for.

IIRC it's the "C" bit (channel status) in "DR", 0=left, 1=right?

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