09 2017 档案

摘要:我在网上看到了一点神奇的代码,用来计算一个数字末尾连续零的个数。 刚好我在优化一个I2C读写函数(只写入I2C特定bit),觉得这个很有用。经过尝试,确实没问题。 下面我隆重介绍一下: Count the consecutive zero bits (trailing) on the right w 阅读全文
posted @ 2017-09-30 17:45 HelloAtom 阅读(329) 评论(0) 推荐(0) 编辑
摘要:Thermal Engine Thermal 相关的东西主要在Vendor/qcom/proprietary/thermal-engine 目录下: thermal-engine.conf 文件可以用来配置高低温时CPU的工作模式、充电电流等相关操作。 也可通过修改ss-data.c thermal 阅读全文
posted @ 2017-09-26 18:48 HelloAtom 阅读(2669) 评论(0) 推荐(0) 编辑
摘要:USB 接口探测分类 SDP (Standand Downstream Port) 标准下行接口 标准USB都支持的接口 这种端口的D+和D 线上具有15kΩ下拉电阻。限流值如上讨论:挂起时为2.5mA,连接时为100mA,连接并配置 为较高功率时为500mA。 CDP (Charging Down 阅读全文
posted @ 2017-09-21 10:59 HelloAtom 阅读(1375) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示