Neotron-Compute / Neotron-Pico-BIOS

BIOS for the Neotron Pico
GNU General Public License v3.0
15 stars 5 forks source link

Implement HID support #15

Closed thejpster closed 1 year ago

thejpster commented 1 year ago

Talk to the BMC to get key events.

thejpster commented 1 year ago

Desktop BIOS now has HID support. Here we will need a byte buffer of PS/2 scan codes, and the pc-keyboard crate to decode into key events. We will poll the BMC whenever we do an OS operation and the BMC interrupt is high. The BMC will hold the keyboard clock line low whenever its internal scan code buffer fills up (stopping any more scan codes being generated). A partial scan code code would be regenerated, but a repeated F0 or E0 prefix can be discarded easily enough (they are never used as actual scan codes).

thejpster commented 1 year ago

This is WIP. SPI comms on the BMC craps out after a while though.

thejpster commented 1 year ago

It's in!