I'm working on a BeagleBone Black (BBB from now on) with its stock Angstrom Linux.
I'm able to do GPIO/Analog programming using JavaScript, but I want to do it in C/C++.
I know the sysfs thing and /dev/mem, I want to know how to configure the GPIO and analog pins.
I can write C/C++ code for GPIO/analog reading writing, but have no clue what to do for initialization.
One way is the Device Tree Overlay, but I don't want to go for two different things for one purpose, since I can understand that it can be done in C/C++ but how??
It'll be helpful if I could alongside get some example related to both sysfs and /dev/mem for configuring+r/w of gpio &/or analog pins of the BBB (on Angstrom Linux, if this matters)