Files
OpenCellular/board
Louis Yung-Chieh Lo c425568c40 Interrupt-based keyboard matrix scan.
By default the scanning code would pull-low all column pins and listen to
any key press interrupt on input pins. This can save power compared to the
repeatly polling.

Once a key is pressed, the scanning code enters the busy loop and pull-low
column pins one by one. Then generate the scan code to host.

The code keeps polling after 1 second after no key is pressed. Then goes
back to interrupt mode.

BUG=none
TEST=Manual tested on S*y machine.

Change-Id: I0bf8877450dbd6ad1197a2fe1714ab755dc49a80
2011-12-29 21:12:07 +08:00
..
2011-12-29 12:04:03 +08:00