Skip to content

Add half duplex and 3wire mode support to SPI #143

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

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

peckpeck
Copy link
Contributor

@peckpeck peckpeck commented Oct 9, 2022

By using a config option to busmaster builder

@peckpeck
Copy link
Contributor Author

Any comment on this ?

@Vollbrecht
Copy link
Collaborator

Any comment on this ?

on first glance looks good, did you try out all modes on hardware? i read that the c3 variant does not really have an halve duplex support. maybe need to test that to confirm, else we can use an #[cfg(not(esp32c3))]

@ivmarkov
Copy link
Collaborator

@peckpeck Sorry for the delay. The PR is small and clean - if you could only check indeed if half-duplex is supported on the C variants indeed, and #[cfg()] it out if not, then I'll merge.

@peckpeck
Copy link
Contributor Author

I don't have a C variant to test on, but the espressif programming guide for esp32 C2 and C3 document those flags too.

@ivmarkov ivmarkov merged commit 391b63e into esp-rs:master Oct 31, 2022
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.

3 participants