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 16 bit SPI #107

Merged
merged 7 commits into from
Aug 7, 2020
Merged

Support 16 bit SPI #107

merged 7 commits into from
Aug 7, 2020

Conversation

zklapow
Copy link
Contributor

@zklapow zklapow commented Jun 17, 2020

This adds support for sixteen bit words in SPI by adding a generic parameter for the wordsize (default to 8 for backwards compatibility). The FullDuplex<u16> impl is basically just copied with minor edits, there probably a better way to do this but copying seemed fine.

Ideally we could merge this alongside #99 and then SPI support would be much more complete!

@teskje
Copy link
Collaborator

teskje commented Jul 25, 2020

I'm not too happy about all that code duplication, we can do much better than that. I made you a PR with my suggested way of cleaning this up: zklapow#1

@zklapow
Copy link
Contributor Author

zklapow commented Aug 6, 2020

I merged @ra-kete changes into this branch and brought this up to date with master, should be mergeable or at least ready for review now.

@teskje teskje merged commit fead2eb into stm32-rs:master Aug 7, 2020
@zklapow zklapow deleted the spi-sixteen-bit-word branch August 7, 2020 20:09
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.

None yet

2 participants