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

Interrupt driven serial1 #145

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

maxint-rd
Copy link
Contributor

This PR reintroduces a read buffer for reading serial1 input using a hardware interrupt.
The read buffer allows for proper implementation of serial.available() and serial.peek().
It also prevents loosing serial input data received when the processor is doing something else.

This PR was tested mainly on the CH32V003 and confirmed to also work on the CH32X035. Other processors may work as well, but have not been tested. The current implementation only supports the serial1 interface.

@maxint-rd
Copy link
Contributor Author

maxint-rd commented Sep 19, 2024

@vuhazu tested and confirmed it works for CH32x035,

@atollminsk tested and confirmed it works for CH32V208WB.

@atollminsk tested and confirmed it works for CH32V203C8T6. tested to also work on CH32V307VCT6.

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.

1 participant