mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
This loosely ports the LM4 keyboard_scan code to STM32 Notable differences: - Keyboard GPIO layout is spread across multiple ports and is not contiguous in many places. Because of this, bitmasks are mostly generated on-the-fly instead of hard coded (IO is kept to a minimum) - Longer timeout when scanning columns (100us versus 20us) Also, some functions are stubbed out currently since they rely on other bits being implemented: - keyboard_state_changed() - keyboard_has_char() - keyboard_put_char() BUG=none TEST=Tested on STM32L-Discovery (monitoring keystrokes via UART) Change-Id: I84985879589e70688b2b29b288ab17037f7668b2