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

你可能感兴趣的文章
pandas 均值(mean), 均值填充NA(fill_na)
查看>>
Pandas 对数据框的布尔比较
查看>>
pandas 将通话数据分割为15分钟的间隔
查看>>
pandas 找到局部最大值和最小值
查看>>
pandas 按日期和年份分组,并汇总金额
查看>>
pandas 数据帧到PostgreSQL表中使用的是没有SQLAlChemy的心理复制2吗?
查看>>
pandas 数据帧多行查询
查看>>
pandas 数据框将 INT64 列转换为布尔值
查看>>
pandas 数据框将列类型转换为字符串或分类
查看>>
pandas 数据框条件 .mean() 取决于特定列中的值
查看>>
pandas 数据框至海运分组条形图
查看>>
Pandas 数据透视表:列顺序和小计
查看>>
pandas 时序统计的高级用法!
查看>>
pandas 时间序列重新采样结束给定的一天
查看>>
pandas 根据不是常量的第三列的值将值从一列复制到另一列
查看>>
pandas 根据值从多列中的一列查找
查看>>
Pandas 根据布尔条件选择行和列
查看>>
pandas 滚动窗口 - datetime64[ns] 未实现
查看>>
pandas 版本兼容特定的蟒蛇和NumPy配置吗?
查看>>
pandas 生成excel多级表头
查看>>