-
Notifications
You must be signed in to change notification settings - Fork 367
Async serial uart read #620
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
Conversation
|
Could you address the remaining review comments from #615 here please. |
|
Sorry, you are right I lost some code on commit. I will put it back |
MabezDev
left a comment
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.
Thanks for sticking with me during the review process @alexiionescu, this is looking good now!
Could you fix the conflict in the changelog (sorry, I just merged another PR)?
* implement embassy async uart read * Add embassy async read support for uart * changes based on review * fix CI failures * change review #2 * fixed re-opened PR number * changes review no.3 --------- Co-authored-by: Scott Mabin <[email protected]>
* implement embassy async uart read * Add embassy async read support for uart * changes based on review * fix CI failures * change review #2 * fixed re-opened PR number * changes review no.3 --------- Co-authored-by: Scott Mabin <[email protected]>
* implement embassy async uart read * Add embassy async read support for uart * changes based on review * fix CI failures * change review #2 * fixed re-opened PR number * changes review no.3 --------- Co-authored-by: Scott Mabin <[email protected]>
serial uart
readforembassyasyncTested on ESP32C3 only.
NOTE:
embassy_hal_asyncdoes not have aReadtrait forserial,onlyWritetraits, so I could not follow the same implementation pattern as in the write case. The new function is calledread, not sure if it is Ok, there was not a read function for nb implementation. If you think is to generic, I can change it toread_asyncAlso fix an issue with async write on large buffers, was panicking with Err Would Block. Discovered when testing reading and echoing back a large reader buffer.
NOTE: this is a reopen of the #615 PR.
Must
errorsorwarnings.cargo fmtwas run.CHANGELOG.mdin the proper section.Nice to have