-
Notifications
You must be signed in to change notification settings - Fork 209
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
Feature gate embedded-hal@0.2.x
implementations, rename eh1
feature to embedded-hal
#1273
Conversation
embedded-hal@0.2.x
implementations, rename eh
feature to embedded-hal
embedded-hal@0.2.x
implementations, rename eh1
feature to embedded-hal
Generally fine. Not sure about the Maybe having |
I don't think that the The old I guess we can see what other people think. |
It's not confusing on its own - I just meant it's confusing that an existing feature changed what it is doing. Just tried to think about it from a user's perspective who wants to update their projects. It's also just a comment - not really an opinion But I totally agree - let's hear other's voices |
009edcf
to
0eb1a84
Compare
I recommend to move Also I see you don't use inherent infallible |
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.
LGTM! I'm indifferent about the impls being in a module or as they are now - I'll let someone else decide that :).
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.
LGTM - I think having the impls in modules looks cleaner but probably something for a follow up PR (if we want that)
…re to `embedded-hal` (esp-rs#1273) * Create an `embedded-hal-02` feature and gate implementations, rename `eh1` to `embedded-hal` * Use native `Delay` APIs in examples where applicable * Fix example imports, be explicit about about `embedded-hal-02` feature requirements * Update `CHANGELOG.md`
Opening this as a draft, as I haven't really discussed this with anybody else yet 😁
Many of our APIs are currently quite tightly coupled to the
embedded-hal
packages, and I would like to begin working towards rectifying this.This PR serves as a first step, and will allow us to build the HAL without any
embedded-hal
traits being implemented, which should rather quickly show us what we need to fix I'd imagine. I've left theembedded-hal-02
feature enabled by default, so this shouldn't really change anything from the user's perspective quite yet. I guess we will need to discuss our plans regarding these packages moving forward.This leaves the
TWAI
driver in a bit of a weird spot for now, but see #1123 for more details (this issue should be prioritized sooner than later, I think).Closes #849