Add Rx and interrupts to UsbSerialJtag#267
Conversation
|
Thanks for your contribution Code looks fine to me - any specific reason implementing My testing on ESP32-C3 went also fine but not on ESP32-S3
I'm also not sure if BTW the problem with freezing the application is also present on S3 with current main branch - so it's not really something you introduced |
|
Thanks for taking a look at my pull request @bjoernQ. The |
|
There is an issue regarding the problem on ESP32-S3 now: #269 |
|
@jessebraham any preference how to handle this? I see basically two options
|
|
I think either approach is probably fine. If we're unsure of what the underlying issue is then I don't think we should hold up on merging the changes if they're otherwise working on the other device. As you said we can just link the issue in a comment or something and update it when we're able. |
|
Agree - let's get this merged Seems #271 causes merge conflicts - also maybe revert the S3 example changes or add a comment with a link to the issue - then it should be fine Thanks for the effort |
Add non-blocking Write
|
Sorry for the delay. |
bjoernQ
left a comment
There was a problem hiding this comment.
LGTM - thanks for the contribution
This is a first cut of adding USB serial Rx and the ability to trigger interrupts when packets are received. I have attempted to make the interface as similar as possible to regular serial UART where it makes sense.
This does include a breaking change - now you actually have to create an instance of UsbSerialJtag with a peripheral instead of just using the registers directly.
I have updated the esp32c3 and esp32s3 examples to demonstrate some of the new features and tested the change on my ESP32-C3-DevKit-RUST-1. I don't have an esp32s3 handy to test its example, but it at least builds. Would appreciate if someone else could test it for me please.
To note:
Possible future work:
Would love to hear if anyone has any useful feedback on this change.