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

[spi] Make SPI set_format accept frame format #654

Merged
merged 7 commits into from
Aug 8, 2023

Conversation

NelsonAPenn
Copy link
Contributor

@NelsonAPenn NelsonAPenn commented Jul 21, 2023

Allow selecting Texas Instruments SSI and National Semiconductor Microwire frame formats. Modify interface to only configure clock phase and polarity when applicable (if frame format is Motorola SPI).

Additional notes:

  • resolves SPI formats #241
  • contains breaking changes to both set_format and SPI init functions
  • removes generic <M: Into>
    • I could add a generic Mode to the FrameFormat enum, but I believe it adds more complexity than it is worth (FrameFormat::MotorolaSpi(mode.into) is concise enough

Allow selecting Texas Instruments SSI and National Semiconductor Microwire
frame formats. Modify interface to only configure clock phase and polarity
when applicable (if frame format is Motorola SPI).
@NelsonAPenn NelsonAPenn marked this pull request as ready for review July 22, 2023 15:19
rp2040-hal/src/spi.rs Outdated Show resolved Hide resolved
rp2040-hal/src/spi.rs Show resolved Hide resolved
rp2040-hal/src/spi.rs Outdated Show resolved Hide resolved
rp2040-hal/src/spi.rs Outdated Show resolved Hide resolved
rp2040-hal/src/spi.rs Outdated Show resolved Hide resolved
rp2040-hal/src/spi.rs Outdated Show resolved Hide resolved
rp2040-hal/src/spi.rs Outdated Show resolved Hide resolved
rp2040-hal/src/spi.rs Show resolved Hide resolved
@ithinuel
Copy link
Member

Also, I always forget to add that but:

Thank you for your contribution! Your work is greatly appreciated 😃

@jannic jannic merged commit 76efb36 into rp-rs:main Aug 8, 2023
8 checks passed
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.

SPI formats
3 participants