2018年5月30日

IIC 设备Dump 寄存器方法 (kernel 4.4)

摘要: 废话不多说,直接上代码: 1.添加IIC读写寄存器方法: static struct class *cls = NULL; static struct i2c_client *rt5640_i2c_g = NULL; 2、在probe函数中创建/sys/class下的节点,并且创建相应的属性文件。 阅读全文

posted @ 2018-05-30 15:23 黑大米 阅读(1457) 评论(0) 推荐(0) 编辑

导航