Example code on accessing BeagleBone GPIO through mmap()