博客
关于我
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/

你可能感兴趣的文章
pymysql.err.OperationalError: (1364, “Field ‘id‘ doesn‘t have a default value“)
查看>>
Pytorch Tensor 维度操作的形象理解 Tensor.unsqueeze() Tensor.squeeze()
查看>>
PyMySQL库对Mysql数据库进行增删改查与工具类封装
查看>>
pynput的基本介绍和使用
查看>>
pyodbc 通过 IIS7 连接到 MSSQL 2005 服务器
查看>>
PyPI 存储库中的 JarkaStealer:深入解析与防范措施
查看>>
Pyplot tutorial,Pyplot官方教程自翻译
查看>>
PyQ5学习笔记——使用内部槽函数关闭窗口
查看>>
PyQ5学习笔记——使用自定义槽函数关闭窗口
查看>>
PyQt MimeData 文件名
查看>>
PyQt QML Material Design 按钮背景不会改变
查看>>
PyQt QString转成python stirng
查看>>
PyQt QToolButton在焦点时不更新图标
查看>>
PyQt 正确使用 emit() 和 pyqtSignal()
查看>>
PyQT-将文件复制到剪贴板
查看>>
PYQT.如何在QTableView中插入小部件
查看>>
PyQt4 代码在 PyQt5 (QHeaderView) 上不起作用
查看>>
PyQt4 到 PyQt5 ->mainFrame() 已弃用,需要修复才能加载网页
查看>>
PyQt4, class:mouseButtons用法
查看>>
PyQt4参考文档
查看>>