-
Notifications
You must be signed in to change notification settings - Fork 214
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 pins are no longer optional #2133
Conversation
989332b
to
64aa356
Compare
3360bff
to
291deea
Compare
Not a blocker for this PR (This problem already exists with or without this PR anyway) but I thought it's worth mentioning that using Perhaps it's best to wait until someone complains that a driver doesn't work right when using NoPin. 😂 |
I guess we should direct users to prefer Level if they can - but NoPin (or something else) needs to implement both PeripheralInput and PeripheralOutput because some peripheral signals need both (e.g. half-duplex SPI data). I think I would like to avoid a big table but the idea of mapping InputSignal to Level is a good worst case fallback. Do you happen to have an example peripheral/signal in mind? Or did I hit a jackpot with QSPI failures? :D :D |
Yeah that's probably best.
😂
Ahhh, I had completely missed this. Fair enough
SPI slave CS pin should probably have a default of 0, otherwise the peripheral is useless. I can't think of more ATM but these are what I have in mind. |
Thanks. If any of these is bidirectional, that's a blocker and I don't see a good way around it that doesn't suck in some way. |
They're all input only. |
89aebf7
to
0699e88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
Since we already have
DummyPin
(nowNoPin
), let's replace the remaining uses ofOption
with it.cc #1318
Closes #2006