随笔分类 -  Linux 内核

摘要:1.查看GPIO使用状态 cat /sys/kernel/debug/gpio 2. 在 sys/class/gpio echo 29 > export --> 此时会产生一个gpio29 的目录 echo 29 > unexport --> 取消这个节点 gpio29目录下面会产生如下节点 dir 阅读全文

posted @ 2017-11-15 20:07 xjxhxhl 阅读(826) 评论(0) 推荐(0)

摘要:1 . static struct kobject *ex_ctl_obj; 2. 3. 创建函数 static ssize_t gpio_ctl_show(struct device *dev, struct device_attribute *attr, char *buf) static ss 阅读全文

posted @ 2017-11-14 21:01 xjxhxhl 阅读(132) 评论(0) 推荐(0)

摘要:1.内核头文件 2.演示Demo 阅读全文

posted @ 2017-11-14 16:27 xjxhxhl 阅读(112) 评论(0) 推荐(0)

导航