博客
关于我
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取当天的最后一秒_Docker快速搭建PHP开发环境详细教程
查看>>
php取绝对值
查看>>
PHP变量内容的获取
查看>>
php各种常用的算法
查看>>
php各种缓存策略对比
查看>>
RabbitMQ高级特性 - 消息分发(限流、负载均衡)
查看>>
php后台“爬虫”模拟登录第三方系统
查看>>
php后台的在控制器中就可以实现阅读数增加
查看>>
php命令行生成项目结构
查看>>
php命名空间
查看>>
PHP命名空间带来的干扰
查看>>
PHP和MySQL Web开发从新手到高手,第1天-搭建PHP开发环境
查看>>
php商店管理系统,基于PHP的商店管理系统.doc
查看>>
PHP四大主流框架的优缺点总结
查看>>
PHP图片处理—PNG透明缩放并生成灰图
查看>>
php在liunx系统中设置777权限不起作用解决方法
查看>>
PHP基于openssl实现的非对称加密操作
查看>>
php基本符号大全
查看>>
php基础篇-二维数组排序 array_multisort
查看>>
php基础配置环境变量
查看>>