gpio 調試 – #adb shell – #cd /sys/devices/virtual/misc/mtgpio/ ▪ check all GPIO setting index: mode(0~7) pullselect(0 low,1 high) din(1 en) dout(1 en) pullenable(1 en) dir(0 in, 1 out) dinverse(1 en) - #cat pin ▪ check out pin setting(take GPIO88 for example) - #echo –r1 88 > pin ▪ set GPIO88 paremeter [pin]:[mode] [pullsel] [din] [dout] [pullen] [dir] [dinv] - #echo -w=88:0 0 0 1 1 1 0 > pin ▪ set GPIO88 mode 3 - #echo -wmode 88 3 > pin ▪ set GPIO88 dir out - #echo -wdir 88 1 > pin ▪ set GPIO88 dir in - #echo -wdir 88 0 > pin ▪ set GPIO88 push enable - #echo -wpen 88 1 > pin ▪ set GPIO88 push up - #echo -wpsel 88 1 > pin ▪ set GPIO88 out high - #echo -wdout 88 1 > pin ▪ set GPIO55 out 26M clock clk: echo -ms [num] [src] [div] > pin - #echo -w=55:3 0 0 1 1 1 0 > pin - #echo -ms 3 2 1 > pin