-
Notifications
You must be signed in to change notification settings - Fork 182
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
alternative implementation for SPI pins #145
Conversation
Looks good. |
What is better? let spi = dp.SPI2.spi(
(spi::NoSck, spi::NoMiso, gpioa.pa10),
... or let spi = dp.SPI2.spi(
(gpio::NoPin, gpio::NoPin, gpioa.pa10),
... or implement both? |
Is better. It expresses intent and thus prevents misconfiguration. |
Ok. But misconfiguration is not possible in second variant too. |
Well, misconfiguration in the sense of the user accidentally opting out of the wrong thing. If you read |
I agree that I would almost like to change it to Perhaps we could add `Impl |
Looks good in its current state, we can probably do the thing I mentioned in the previous comment later. Edit: Oh yea, it's missing a changelog entry, could you add that? @burrbull |
In last commit I've implemented |
Looks good, thanks! |
No description provided.