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
gaunh0 / beaglebone_mmap Goto Github PK
View Code? Open in Web Editor NEWThis project forked from chiragnagpal/beaglebone_mmap
Example code on accessing BeagleBone GPIO through mmap()