针对某龙芯2H主板扩展的4乘4矩阵键盘的需求,分析了键盘硬件电路及串行通信接口。在Linux 2.6.32的输入子系统模型的基础之上,设计了矩阵键盘输入设备的驱动程序并给出了驱动程序实现的过程。测试结果证明,该驱动满足了设计的需求,工作稳定、高效,并且通用性较强,在以后的项目中只需更改少量接口就可以使用。%For the Loongson2H board 4×4 matrix keyboard extension requirements, analyzed the keyboard hardware and serial communication interface. Designed matrix keyboard input device driver based on Linux 2.6.32 input subsystem model and showed the driver implementation process. The test results showed that the driver meets the design requirements, stable, efficient and versatile. In the later project, the driver can be used directly with little modification.
展开▼