[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/dev/gpiog ???? one bit??



Hi,

I'm using /dev/gpiog, but I'm having problems.
When i test:

mask = 0xff << 8;
ioctl(devfd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS),mask);
sleep(1);
ioctl(devfd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS),mask);

I don't see change in my lp0 ( i have connected led's).
How can I change one bit of lp0?

I'm using kernel 2.4.19.

Thank.

Antonio Redondo.