Thank you for the answer.

> Are you shure that you setted the IOG22 as output.
> 

"setbits" should do this for me. In my C test program, I do this first:

// set IOG16_23 as output
gpiosetdir(PORTG, DIROUT, PG16_23);

I guess "setbits" uses the GPIO syscalls method. I will try the "file 
descriptor method" this evening.

Any possibility to set the pins direction in the kernel? At boot?

Moreover, shouldn't "readbits" show an 'X' instead of '0' or '1' is the 
pin was really configured as output?

Thank you.

Cyril Jaquier

Reply via email to