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

Updates to nano6502 serial driver. Added baudrate selection utility #168

Merged
merged 5 commits into from
Sep 13, 2024

Conversation

venomix666
Copy link
Contributor

@venomix666 venomix666 commented Sep 9, 2024

I added a small delay to the non-blocking serial read to prevent xrecv/xsend from timing out too quickly. I also added a utility to set the baudrate to user area 1.

I agree with your comment on the last PR that we need to figure out a good way to handle more than one UART, and I think that we should also add some configuration options to the uart driver. At least the baud rate would be good to set when opening the port, but maybe also data bits, parity and stop bits even though 8N1 is more or less standard these days.

@venomix666
Copy link
Contributor Author

Added another small fix to the same PR, clearing the RX buffer on open/close to avoid issues when doing several xmodem transfers in a row.

@davidgiven
Copy link
Owner

Yup, LGTM. Another thing on the list is a timer, needed for proper delays and timeouts...

@davidgiven davidgiven merged commit c00f059 into davidgiven:master Sep 13, 2024
1 check passed
@venomix666
Copy link
Contributor Author

Indeed, especially as there is such a large speed difference between the supported platforms. Did you see Ivop's ideas for a timer driver in #140?

Thanks for merging.

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