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

Dual i2s core #637

Merged
merged 2 commits into from
May 25, 2023
Merged

Dual i2s core #637

merged 2 commits into from
May 25, 2023

Conversation

YruamaLairba
Copy link
Contributor

Hi, i'm trying to implement the 'device' that is suitable for full duplex i2s communication. I'd like to have opinion about implementation, i'm not sure it follow the general style of the crate. I don't have example to follow, I'm in a unusual situation where the 'device' is composed by 2 peripherals.

@burrbull
Copy link
Contributor

burrbull commented May 12, 2023

looks good for me

@YruamaLairba
Copy link
Contributor Author

I ask that because i'd like to have a similar style to the single i2s, but the current implementation feel weird, espacially if i want to implement the equivalent of I2sExt. Anyway, i can't change it later. At the moment i just need a way to test stuff in stm32_i2s crate

src/i2s.rs Outdated Show resolved Hide resolved
@YruamaLairba YruamaLairba marked this pull request as ready for review May 22, 2023 20:49
@YruamaLairba
Copy link
Contributor Author

I, can i have a comment about this work ? should I rebase ?

@burrbull
Copy link
Contributor

I, can i have a comment about this work ? should I rebase ?

Yes, rebase, please.

@burrbull
Copy link
Contributor

After rebase you can remove speed workaround:
See d8905f2

@YruamaLairba
Copy link
Contributor Author

rebased!

@burrbull: sorry, i didn't understood if you plan to apply your patch yourself ? in this case i don't need to do anything, but please comment why you are changing pin speed.

@burrbull
Copy link
Contributor

Too many commits. Squash, please

Extension trait for SPI I2SEXT association + duali2s struct

DulaI2S ctor and dtor

dual i2s:  access to ws pin and i2s clock

macro to implment DualI2sPeripheral

remove a clippy lint

fix the dual_i2s macro and use it

fix EXT_REGISTERS

apply workaround for corrupted last bit of data

fix an odd condition

add rtic example with dual i2s driver

replace Extension trait by DualInstance trait

add DualI2sExt trait

stm32_i2s v0.5.0 have been published

require features for rtic-dual-i2s-audio-in-out example

fix formatting

disable DualI2s implmentation for 412/423 to workaround missing I2SEXT

udpate CHANGELOG
@burrbull
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented May 25, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit dcb7f06 into stm32-rs:master May 25, 2023
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