GPIO驱动

Cubieboard通过GPIO驱动步进电机--完结

廉价感情. 提交于 2020-05-07 20:29:16
2013-4-3更新:由于标准GPIO库(gpio-sunxi.ko)已经可用了,不建议再使用sun4i - gpio.ko这个驱动。此文仅作思路上的参考,不用照搬 This driver is not recommended now. For the new gpio driver "gpio-sunxi" is coming. So don't follow this. 1.首先你要编译并加载sun4i-gpio.ko驱动,如何编译:参考 < 如何编译单个驱动文件 > 2.修改script.bin配置,在末尾加上gpio配置段,如何修改:参考< 如何修改script.bin | script.fex > 添加的内容如下: [gpio_para] gpio_used = 1 gpio_num = 67 gpio_pin_1 = port:PG03<1><default><default><1> gpio_pin_2 = port:PB19<1><default><default><1> gpio_pin_3 = port:PB18<1><default><default><1> gpio_pin_4 = port:PG06<1><default><default><1> gpio_pin_5 = port:PG05<1><default><default><1> gpio_pin