2009-09-13 04:33:59 simple GPIO driver BF537
Yuval Yosef (ISRAEL)
I use Linux version 22.214.171.124-ADI-2009R1. First of all, Is it correct to use "simple gpio" driver in this version ?
I have some questions after testing behavior of simple-gpio-game.c program.
1. Return code of fflush() is EINVAL( = 22 - invalid argument) . Is it affect on future actions ?
2. After exit the program by CTRL+C I see that leds LEDS2, LEDS3, LEDS4, lEDS5 stay 'turned off'.
3. After some changes, adding close() function and exit the program by ' return' leds LEDS2, LEDS3, LEDS4, lEDS5 stay 'turned off' also. But the leds according to docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:simple-gpio&s=simple&s=gpio should be 'turned on' ?
Thanks for your help.
2009-09-13 17:07:18 Re: simple GPIO driver BF537
Mike Frysinger (UNITED STATES)
using flush on the driver makes no sense
the documentation already tells you that released gpios are reset to the default state