博客
关于我
MSM8916 海信M9模块学习记录三:开机按键、音量上下按键
阅读量:675 次
发布时间:2019-03-15

本文共 1214 字,大约阅读时间需要 4 分钟。

设计原理图

引脚说明

PIN No. Pin Value IO Votage MSM’s Tye Functional description
PIN030 PIN (KEY_PWR_ON) 开机键 - DI Keypad poweron detect input
PIN031 PIN (KEY_PM_RESIN) 下键 - “DO-ZDO” PMU_KEY
PIN032 PIN (KEY_VOL_UP) 上键 GPIO107 B-PD:nppukp Configurable I/O

主要初始化函数位置

aboard the file */ init.c located in */ bootable/bootloader/lk/target/M9PLUS_10/ , the initialization functions are implemented to control the keypad and volume buttons. For example, the function target_volume_up() initialize the volume up button by setting its config paramaters to input mode with pull-up enabled. After waiting for the debounce time, it checks the status to determine if the button is pressed.

次要代码

aboard the file */ dev/keys/keys.c/ , there is an initialization function keys_init() which sets up the key bitmap to ensure all keys are in their default states. This function is called during system boot to prepare the keyboard input layer for other functions.

主要外部调用函数

aboard the file */ pmic/pm8916/pm8916.c/ , several functions are provided to interact with the power management unit (pmic). For instance, pm_get_power_on_status() checks whether the power key is pressed, while pm_get_chg_voltage() provides the battery charging status.

转载地址:http://jyvmz.baihongyu.com/

你可能感兴趣的文章
php如何优化压缩的图片
查看>>
php如何做表格,新手怎么制作表格
查看>>
RabbitMQ高级特性
查看>>
php如何定义的数位置,php如何实现不借助IDE快速定位行数或者方法定义的文件和位置...
查看>>
RabbitMQ集群 - 普通集群搭建、宕机情况
查看>>
php如何正确的获得文件的后缀名
查看>>
PHP如何生成唯一的数字ID
查看>>
PHP如何获取当前页面的最后修改时间
查看>>
PHP如何读取json数据
查看>>
PHP字符串
查看>>
PHP字符串递增
查看>>
php学习之基础语法
查看>>
RabbitMQ集群 - 仲裁队列、Raft协议(最详细的选举流程)
查看>>
PHP学习总结(11)——PHP入门篇之WAMPServer多站点配置
查看>>
PHP学习总结(12)——PHP入门篇之变量
查看>>
PHP学习总结(13)——PHP入门篇之常量
查看>>
PHP学习总结(14)——PHP入门篇之常用运算符
查看>>
PHP学习总结(1)——PHP入门篇之PHP可以做什么?
查看>>
PHP学习总结(2)——PHP入门篇之PHP代码标识
查看>>
PHP学习总结(3)——PHP入门篇之PHP的echo语句
查看>>