how can I create custom driver for GPIO?
Hi,I want to access GPIO.
I'm trying it by following this article (http://developer.t-firefly.com/thread-2436-1-1.html).
where is driver file created? I've searched /dev/ folder but I don't see it.
plz help me.
thanks. driver -->kernel/drivers/misc/luobo_gpio.c
-->kernel/drivers/misc/Makefile addobj-$(CONFIG_LUOBO_GPIO) += luobo_gpio.o
写驱动太麻烦了在用户空间 echo174> /sys/class/gpio/exprot 生成一个gpio174 节点
通过 echoout或者 in 改变gpio的 输入输出 echo 1或者 0 改变 gpio的电平
就是还有第一点比较麻烦,需要知道gpio对应的号码, 这里可以用楼上的驱动,去测试得到比如 gpio5_A1的编号是多少。 carlinluo 发表于 2015-10-8 15:15
-->kernel/drivers/misc/luobo_gpio.c
-->kernel/drivers/misc/Makefile addobj-$(CONFIG_LUOBO_GPIO) ...
哥们,你的脚本有问题,无法生成/dev/luobogpio
页:
[1]