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

Add non-breaking LPSPI rework #156

Merged
merged 8 commits into from
May 9, 2024
Merged

Conversation

mciantyre
Copy link
Member

These are most of the non-breaking changes proposed in #149. I extracted them so that we could test and release them with today's driver. Unless there's concern, I plan to publish these within the 0.5 releases.

Finomnis and others added 8 commits May 8, 2024 22:06
Co-authored-by: Ian McIntyre <ianpmcintyre@gmail.com>
- Make sure we never get a baud rate faster than specified (slower is
  pretty much always ok for peripherals)
- Configure PCSSCK and SCKPCS properly for contiguous transfers
Co-authored-by: Ian McIntyre <ianpmcintyre@gmail.com>
Co-authored-by: Ian McIntyre <ianpmcintyre@gmail.com>
Currently non-breaking, and we encourage users towards the
Lpspi::set_mode method. This allows us to avoid the RMW on TCR, which
the reference manual says isn't best.

Co-authored-by: Ian McIntyre <ianpmcintyre@gmail.com>
Unlike LPUART, there's no requirement to be disabled while changing
this. Keep the existing API, and point users towards the new method.

Co-authored-by: Ian McIntyre <ianpmcintyre@gmail.com>
@mciantyre mciantyre merged commit b9a8245 into imxrt-rs:main May 9, 2024
31 checks passed
@mciantyre mciantyre deleted the lpspi-rework branch May 9, 2024 12:40
@teburd
Copy link
Member

teburd commented May 9, 2024

looked good to me, glad to see it merged

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