-
Notifications
You must be signed in to change notification settings - Fork 251
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
Async serial uart read #620
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 |
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 jessebraham#2 * fixed re-opened PR number * changes review no.3 --------- Co-authored-by: Scott Mabin <[email protected]>
serial uart
read
forembassy
async
Tested on ESP32C3 only.
NOTE:
embassy_hal_async
does not have aRead
trait forserial,
onlyWrite
traits, 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_async
Also 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
errors
orwarnings
.cargo fmt
was run.CHANGELOG.md
in the proper section.Nice to have