-
Notifications
You must be signed in to change notification settings - Fork 247
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
Implement embedded-io Read + Write for UartPeripheral #727
Conversation
Thanks for this pull request. I think this is a very useful addition. Does enabling the |
Good reasons to have feature flags include:
I don't think |
GH seems to think there still is a change request... |
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.
IMHO, we should be consistent with our embedded-hal's support.
So, our default hal impl is for 0.2.7 (for now).
If we are to implement embedded-io support, then it should follow the same model as the eh1.0-rc.* (using a feature), or have it unconditionally & remove the eh1.0 feature.
Also, for consistency with eh1.0 implementation, the embedded_io::Error
should be in uart::reader
next to the error type's definition.
However, as far as I am concerns, those are nits so it's only an opinion that I don't hold strongly.
Regarding eh1.0, the planned release date for that is in two weeks, an I expect that we'll remove the feature flag after that. |
I would bundle it under the eh-1.0 feature flag, to be honest, because it's effectively where the eh-0.2 serial traits went to after they were taken out of eh-1.0. |
But will we still have an eh-1.0 feature flag once eh-1.0 is released? The reason we have one now is because it's an unstable feature, not covered by stability guarantees. But once it's released, I'd prefer removing the flag entirely. As the patch uses a released version of embedded-io, I see no reason to hide it behind a feature flag. |
No, I expect the eh-1.0 flag to go away. I was just thinking of (eh-1.0, e-io-0.6) as a pair, which have the equivalent functionality of (eh-0.2). You could just add e-io-0.6 support right now. |
No description provided.