Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Source PR: #5408
Credits to @tomykaira for doing the actual work!
Description
This PR improves performance of PS/2 mouse in both interrupt mode and USART mode. On my keyboard, it reduces matrix scan delay from 11ms to 1ms. This makes it possible to use encoder AND trackpoint at the same time without any lags!
Additional changes introduced are:
ps2_mouse_set_stream_mode
during initialization if stream mode is selected - not sure why that wasn't done already: drivers/ps2/ps2_mouse.c:56. This makes USART mode work properly when booting the keyboard.Types of Changes
Issues Fixed or Closed by This PR
Checklist
Test case
Wiring & trackpoint images (source: https://github.com/joric/jorne/wiki/Trackpoint)
Config (tested with both INT & USARG modes)
Demo of me using trackpoint & encoder simultaneously: https://imgur.com/a/cqL8j1x