Example code on accessing BeagleBone GPIO through mmap()
C
Latest commit a13f633 Feb 4, 2014 chirag deleted: README.MD
Permalink
Failed to load latest commit information.
README.md new file: README.md Feb 4, 2014
beaglebone_gpio.h new file: beaglebone_gpio.h Feb 1, 2014
gpi.c new file: beaglebone_gpio.h Feb 1, 2014

README.md

The above code contains a header file, beaglebone_gpio.h and a source file gpi.c Just compile the gpi.c on your beaglebone using gcc, and run it. Make sure you have first exported pin P9_12 as a GPIO using an appropriate device tree overlay