Pad control registers can only be changed in kernel space. You could write a kernel driver or do it the right way and use device tree.
See https://github.com/nomel/beaglebone/tree/master/gpio-header If you don't want to use it directly, you can use the generated files as an example. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.