Hi, On 01/28/2014 02:29 PM, Michal Suchanek wrote:
Hello,I have the sauce so I can presumably rip out the useful parts and make own tool but here is what I get with pio: root@A13:/sunxi-tools# ./pio print usage: ./pio [-m|-i input] [-o output] pin.. print Show all pins Pxx Show pin Pxx<mode><pull><drive><data> Configure pin Pxx=data,drive Configure GPIO output Pxx*count Oscillate GPIO output (mmap mode only) Pxx?pull Configure GPIO input clean Clean input pins mode 0-7, 0=input, 1=ouput, 2-7 I/O function pull 0=none, 1=up, 2=down drive 0-3, I/O drive level root@A13:/sunxi-tools# ./pio PF02 usage: ./pio [-m|-i input] [-o output] pin.. print Show all pins Pxx Show pin Pxx<mode><pull><drive><data> Configure pin Pxx=data,drive Configure GPIO output Pxx*count Oscillate GPIO output (mmap mode only) Pxx?pull Configure GPIO input clean Clean input pins mode 0-7, 0=input, 1=ouput, 2-7 I/O function pull 0=none, 1=up, 2=down drive 0-3, I/O drive level
pio was orignally written to work on mem-dumps, use -m to make it open /dev/mem and directly read / write the real pio settings. Regards, Hans -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
