Page 1 of 1

How I to get GPIO pin status in my driver?

Posted: Wed May 31, 2017 11:41 am
by Max75
Hello!

Can I get pin status of GPIO ? Probably, the function s3c2410_gpio_getpin() not return pin status...

Re: How I to get GPIO pin status in my driver?

Posted: Wed May 31, 2017 11:44 am
by Max75
My system is Mini2440...

Re: How I to get GPIO pin status in my driver?

Posted: Wed May 31, 2017 2:46 pm
by davef
Just checking ... are you aware of the unique way the ports are named in Linux? I can only give you the search terms avrfreaks sysfs gpio. Also there are probably only a few pins enabled
in the kernel driver. See mach-mini2440.c

Good luck