RE: [beagleboard] GPIO from C or C++

Hi Daniel,

Pls. refer the links below to control the GPIO using C :

http://41j.com/blog/2011/09/beagleboard-gpio-input-driverless/
https://github.com/majestik666/Beagle_GPIO

Here, the approach is to control the gpio by mapping the registers using mmap. But, the ideal approach would be to write the gpio driver & control the gpios from the application using the device file. I am planning to write the one and will share it once it is done.

Regards,
Pradeep

http://coherentmusings.wordpress.com/2012/11/25/beagleboard-xm-gpio-kernel-module-driver/

http://coherentmusings.wordpress.com/2012/12/22/device-node-creation-without-using-mknod/

My gpio driver implementation for Beagleboard-xM. One should be able to use the same for beaglebone by changing the gpio number.

Hi,

Thanks for this gpio driver. It works perfectly ok.

Regards,
Pradeep