-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A lot of updates to the SMC code (#2)
* Use Stefan's compact version of OneButton. * Enable Perixx keyboard; set numlock at power on * Remove activity LED debug code. * Move mouse and keyboard initialization state machine to START_RESET after reset. * Implement buffer full handling * Removed some serial print debugging * remove serial debugging * Fixed bug in process byte function * Removed strange line from count() * Commented out lastBitMillis as was done in upstream code * Bugfix in putModifiers function * Added support in the scancode state machine for the two byte response to the read ID command * Forgot break statements * Fixed faulty check for start of read ID response start * Changed bit receive timeout not to clear the whole buffer * Fixed modifier key tracking during buffer full * Improvements to handling of some corner cases + general code cleanup * Fixed a typo, volatile instead of virtual * Fixed typo * Fixing bugs in the keyboard buffer full handling * Reset mouse PS2 state machine when powering off. * Implemented keyboard buffer full handling * Break/Pause key to hold NMI pin * Activate NMI button * Bound NMI to Restore (=PrtScr) * Searching for a NMI problem * Adjusted KB state machine to be aware of Num Lock decorator * Handle scan code differences when Ctrl and Alt are pressed * Trying to extend kbd state machine to catch all PS/2 scancode type 2 weirdness * Simplification of the scancode state machine * Fix to ensure that putModifiers exits with correct scancode_state value * Fixed bug in scancode state machine * Fix behavior when resuming after buffer overrun; would previously lose first key thereafter * Fixed bug regarding two byte read ID response * Check RESB polarity * Code cleanup --------- Co-authored-by: jburks <joe@burks-family.us>
- Loading branch information
1 parent
a4d2c75
commit 9cbd5a9
Showing
5 changed files
with
583 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.