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 PS/2 GPIO Bit-banging driver #15

Open
wants to merge 2 commits into
base: v3.2.0+zmk-fixes
Choose a base branch
from

Commits on Oct 4, 2023

  1. drivers: ps2: Add resend callback to ps/2 interface

    When the PS/2 driver detects an error in an incoming transmission, it’s supposed to send 0xfe to the device to ask it to resend the last packet.
    
    But a PS/2 packet can be more than one byte (such as a 3 or 4-byte mouse packet).
    
    So, on reception of the 0xfe resend command, the PS/2 device resends ALL bytes in the packet and not just the one where the transmission failed.
    
    This can cause the higher level driver’s packet buffer to become misaligned.
    
    This PR adds a callback that notifies the higher level driver when the PS/2 driver requested a resend so that the higher level driver can expect a new packet and doesn’t get misaligned.
    infused-kim committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    3d0d1bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d1d49ce View commit details
    Browse the repository at this point in the history