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

Add host to device command timeout #51

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

stefan-b-jakobsson
Copy link
Collaborator

This PR implements a timeout for host to device commands.

The PS/2 clock line is driven by the device. The SMC will currently wait forever until the device has clocked in the byte or bytes.

@stople
Copy link
Collaborator

stople commented Sep 11, 2024

This works on my PR board with EV2 Calypso, and it prevents the Kernal crash when LEDs are activated when only USB keyboard is attached.

@stefan-b-jakobsson
Copy link
Collaborator Author

I made some size optimization, but the feature is still 78 bytes, and the firmware is total 7,132 bytes.

Furthermore, I have no real way of testing how well it works. I can say that it doesn't prevent the X16 to work with a PS/2 keyboard.

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