;gpio configuration
;gpio_pin_5 ---> 3g_onoff_pin
;gpio_pin_6 ---> 3g_vbat_pin
;----------------------------------------------------------------------------------
[gpio_para]
gpio_used = 1
gpio_num = 2
gpio_pin_1 = port:PH19<0><default><default><default>
gpio_pin_2 = port:PI09<1><default><default><default>
;gpio_pin_1 = port:PH20<1><default><default><1>
;gpio_pin_2 = port:PH10<1><default><default><0>
;gpio_pin_3 = port:PB03<1><default><default><1>
;gpio_pin_4 = port:PI00<1><default><default><0>
;gpio_pin_5 = port:PG10<1><default><default><1>
;gpio_pin_6 = port:PG11<1><default><default><1>
;gpio_pin_7 = port:PI00<1><default><default><1>
;gpio_pin_8 = port:PI01<1><default><default><1>
;gpio_pin_9 = port:PI02<1><default><default><1>
;gpio的描述形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
端口配置:http://linux-sunxi.org/A20/PIO
1,
cubie@Cubian:~$ echo 17 > /sys/class/gpio/export cubie@Cubian:~$ ls /sys/class/gpio/ export gpio17_pg9 gpiochip1 unexport
2,输出模式:cubie@Cubian:~$ echo out > /sys/class/gpio/gpio17_pg9/directioncubie@Cubian:~$ cat /sys/class/gpio/gpio17_pg9/value 03,cubie@Cubian:~$ echo 1 > /sys/class/gpio/gpio17_pg9/value4,输入模式echo in > /sys/class/gpio/gpio17_pg9/direction
查看ddr大小:
cat /proc/meminfo