Repository navigation
Closed
Labels
Milestone
Description
Part of rust-embedded/wg#383
Settled blockers:
WIP: Re-organising repo #169(closed for later consideration)- [RFC] Changing the way we handle addition/changes to the traits #163
[RFC] Use core language async primitives instead external crates #172[RFC] digital::v3 interface + moving to a single interface- Use nb 1.0 #234
- Consider improving watchdog API using move semantics #98 PR: Improve watchdog API design using move semantics #222
- PwmPin: allow get_duty to return the old value for some time #140
- Support 7-bit and 10-bit I2C addressing #147 PR: Make I2C compatible with multiple address sizes #230
- Change reference implementation to something more maintained #156
- ADC API does not allow non-unit channels #110
- Creating abstractions over Pwm trait is not ideal #244 PR: Swap PWM channel argument to pass by reference #246
- Turn traits and execution model modules inside out #298
Capturetrait requires moving/copying channel argument #249- [RFC] Revamp
Errortypes #229 PR: Add error traits for communication interfaces #296 Pwm enable and disable methods only work for channels #182 PR: Add methods to enable/disable the entire timer #183- spi: add Read and separate-buffers Transfer #287
- u8 as default SPI Word #321
- SPI: split into device/bus, allows sharing buses with automatic CS #351
- spi: allow impls returning early, add flush. #365
- Alternative SPI word lengths: add default SPI word types #320
IoPin trait not practical to implement with multiple input/output types #340- Extract SPI exclusive device into shared crate #398
It's not clear whencan::ErrorKind::Acknowledgeshould be returned #387- Split nb and can traits to separate crates. #394
- WIP: I2C bus/device. #392
- delay: make infallible. #432
- I2c: simplify, expand docs, document shared bus usage. #440
- spi: make SpiDevice transaction take an operation slice instead of a closure. #443
- bus/i2c: add RefCell, CriticalSection and Mutex shared bus implementations. #445
- I2C transaction_iter should take an iterator of mutable references #367
SPI implementation doesn't follow embedded-hal requirements for CS linux-embedded-hal#87discussed in WG meetings, we decided we're OK with the solutions in SPI implementation doesn't follow embedded-hal requirements for CS linux-embedded-hal#87 (comment)- serial: add ReadExact, ReadUntilIdle #349
- New embedded-io release #480
- Migration page #283 PR: Add initial version of migration guide #284
- Update changelogs #482
- Document defmt feature #483
spi: add settings to embedded-hal-bus SpiDevice impls for CS-to-clock delays. #539docs in spi: documentOperation::DelayNsis not for CS delays. #559, will add CS delays toembedded-hal-buslater.- RFC: rename DelayNs to Delay #541
- Document SemVer hazards of
spi::Operation::DelayNs#552 - Clarify flushing/"blocking" behavior #455
Open blockers:
- gpio: require
&mut selfinInputPinandStatefulOutputPin. #547 - Revert "gpio: require
&mut selfinInputPinandStatefulOutputPin" #553 ? - Release v1.0.0 #555
- Show that MCU and linux implementations work fine
- Show that drivers can work fine with the new changes
- Your issue here!
Feel free to nominate issues also by commenting below
Reacted by Aaron Tsui
Activity
jamesmunns commentedon Mar 11, 2020
Here is a link to the video call discussion had by myself and most of the members of @rust-embedded/hal team. This includes initial decisions made, and justification/reasoning for each point. The next steps for this would be to codify this into an RFC, and get approval for it (though there is already general consensus within the embedded-hal team).
by the way, this was the "issue with the list of big topics" we were looking for during the meeting :)
Merge #192
eldruin commentedon May 6, 2020
I believe the only unresolved issue as of the list above is #172
I would also add the dependency on rust-embedded/nb#20
Then we need to think about the dev-dependencies which are at the moment
stm32f3andfutures. I guess specially these will hold us back for a while.Disasm commentedon Jun 10, 2020
This async story began just recently and I do not expect it to end in the coming year. Why should we block on it? We can always add this later. In the worst case, these async traits will be released in embedded-hal
v2.0.0.therealprof commentedon Jun 10, 2020
I also think we should keep async separate because it's a different paradigm and might need require a different approach anyway. I can imagine taking an approach similar to
async-stdvsstd, i.e. have the async traits in a separate crateasync-embedded-halwhich would allow crates to move indepedently and express more clearly what is supported where.ryankurte commentedon Jun 10, 2020
i have mixed feelings about async being separate in the long term, but imo it very much depends whether we can find an approach (as is the case for one of the demonstrated ones) that allows everything to be a default impl on top of our base
nborpolltraits as we have now with theblockingdefault methods, so we have one source of truth for integration, simplify the job of hal implementers, and you'll always have access to both. Or if these introduce fundamentally incompatible requirements and must be managed separately. this, however, is not something we can conclusively tell afaik.i posed here (#172 (comment)) that if we have a path towards a decision on the nb/futures swap I would be okay to hold, but so long as it's an open / unknown problem I would also prefer to keep moving and accept integrating async may be another breaking change down the line.
(i would also very much like to hear the thoughts of @japaric if ya have a moment to look at all of this)
Merge #219
hannobraun commentedon Oct 1, 2020
I'd like to nominate #249 as a blocker for the 1.0 release.
hannobraun commentedon Oct 14, 2020
@rust-embedded/hal Would you consider releasing 1.0-alpha.2? I'm working on a driver that I'd like to release soon, and it would be great if I had access to
PinState.Merge #255
ryankurte commentedon Oct 15, 2020
Thanks for the reminder, shipped in #255
hannobraun commentedon Oct 21, 2020
I've recently learned something that I'd like to share, in case it isn't common knowledge yet: A
cargo updatewill pick up alpha.2, if alpha.1 is specified inCargo.toml. I think this is problematic, as new alpha releases might introduce breaking changes. HAL crates that would like to test-drive the alpha can't do so while guaranteeing semver stability.Maybe it would be best to yank the existing alpha releases and test the new changes in a 0.3 series instead? As far as I can see, the alternative would be breakage, inhibited adoption, or additional hoops to jump through (like hiding all alpha implementations behind a feature flag).
57 remaining items
adamgreig commentedon Nov 21, 2023
After some discussion last week, we now plan to release the final 1.0 version on Dec 28th, assuming no major issues come up before then. Please keep testing the RC in the meantime!
madsmtm commentedon Nov 21, 2023
Hey, I've opened a few issues pertaining to the API surface we're stabilizing: #523, #524, #526, #527 and to a lesser extent #525.
I'll volunteer to do the work for each of these, if you think the changes are desired?
Also, this is only the v1.0 release of the
embedded-halcrate, right? E.g. the release of v1.0 ofembedded-hal-asyncshould probably wait until the async trait functionality reaches stable Rust - at which point its functionality will probably just be included inembedded-halitself.Speaking of
async, we should probably decide at least a rough plan for how that integration will look like, given thatasync fnin traits will be stable in 1.75.adamgreig commentedon Nov 21, 2023
Thank you for the review and issues!
Not coincidentally, December 28th (the planned e-h 1.0 release) is the day Rust 1.75 is released, and thus the day async traits are in stable Rust, so I think (?) the plan is to release 1.0 of e-h-async at the same time. However, I don't know if there's still a plan to merge it into embedded-hal, though I haven't heard it discussed in some time.
Finomnis commentedon Nov 22, 2023
I wouldn't be against it :) Although I don't think the plan to do so would interfere with an eh 1.0 release.
Dirbaio commentedon Nov 25, 2023
this was discussed when we did the split initially, the decision was to leave them split after 1.0.
Dirbaio commentedon Dec 14, 2023
📣 we just released v1.0.0-rc.3 with a small GPIO trait change (require
&mut selfin all methods, previouslyInputPinandStatefulOutputPinrequired only&self).We'd appreciate it if you could do another round of testing. Change looks small but
InputPinis a quite foundational trait, and the change might have unintended consequences in type inference / method resolution, we'd love to hear if it's causing issues for you.eldruin commentedon Dec 27, 2023
I have updated the list of pending issues here. @Dirbaio could you have a look?
Florob commentedon Dec 27, 2023
I'd like to nominate #455 for the 1.0 release. I.e. specify whether I2C operations can return early like the SPI ones. If so: do we need a
flush()?Dirbaio commentedon Dec 27, 2023
thanks @eldruin @Florob for bringing these up, I've sent a few PRs and believe they're all cleared now.
Dirbaio commentedon Dec 28, 2023
No release today, it's going to be delayed a bit due to being blocked on #547
eldruin commentedon Jan 9, 2024
embedded-halandembedded-hal-async1.0.0 have now been released.Thank you so much to everyone that was worked and helped through all this time to make this a reality.
🎉
dbrgn commentedon Jan 10, 2024
Thanks a lot to all people involved for pushing this forward week after week over the last 6 years! It's been a while 🙂
Embedded Rust has a bright future ahead! 🦀
hansfbaier commentedon Jan 11, 2024
Awesome!!!