Skip to content

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

Merged
ivmarkov merged 1 commit into
esp-rs:masterfrom
peckpeck:half_duplex_support
Oct 31, 2022
Merged

Add half duplex and 3wire mode support to SPI#143
ivmarkov merged 1 commit into
esp-rs:masterfrom
peckpeck:half_duplex_support

Conversation

@peckpeck

@peckpeck peckpeck commented Oct 9, 2022

Copy link
Copy Markdown
Contributor

By using a config option to busmaster builder

@peckpeck

Copy link
Copy Markdown
Contributor Author

Any comment on this ?

@Vollbrecht

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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