Skip to content
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

hl: add async #201

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

hl: add async #201

wants to merge 5 commits into from

Conversation

newAM
Copy link
Owner

@newAM newAM commented Aug 8, 2022

Not Useful

This is not a useful implementation as-is because the interrupt line needs to be managed for true async...
Manage the interrupt line with the EHA0 GPIO traits, those should register wakers with the associated framework.
Still need to think about if mutexing for separate socket structures is (sanely) possible with async.

Base automatically changed from eh-alpha to main September 3, 2022 15:47
@newAM newAM changed the title ll: add async traits Add async implmentations Sep 3, 2022
@newAM newAM changed the title Add async implmentations Add async implementations Sep 16, 2022
@newAM newAM force-pushed the async branch 3 times, most recently from cedaf79 to f1e20e6 Compare October 10, 2022 16:54
@newAM newAM mentioned this pull request Oct 10, 2022
@newAM newAM changed the title Add async implementations hl async Oct 10, 2022
@newAM newAM changed the title hl async hl: add async Oct 10, 2022
@elpiel
Copy link

elpiel commented Feb 7, 2023

Are there any updates on the async api?
What needs to be done for the registers interrupts to be handled asynchronously?

@newAM
Copy link
Owner Author

newAM commented Feb 8, 2023

async interrupts are easy enough with the embedded-hal-async abstraction for GPIOs. Aside from that not much has been done since this PR, other projects have been taking my time away from this.

@elpiel
Copy link

elpiel commented Feb 9, 2023

async interrupts are easy enough with the embedded-hal-async abstraction for GPIOs. Aside from that not much has been done since this PR, other projects have been taking my time away from this.

Would you be interested in guiding me on how to finish it up?
embedded-hal-async sounds perfect since embassy-embedded-hal also relies on in for e.g. sharing an SPI bus.

@newAM
Copy link
Owner Author

newAM commented Feb 11, 2023

The async portion of this requires a significant departure from the synchronous API to be useful, and I don't have a clear enough picture in my mind of what the final product would look like to guide someone, sorry.

A couple of people have messaged me on matrix about this as well, maybe they're subscribed to this issue and offer some guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants