Here the code from the book "BeagleBone Essentials" written by Rodolfo Giometti and published by Packt Publishing (ISBN 978-1-78439-352-6).
These code examples are presented into the book in order to explain to the reader how the BeagleBone Black's peripherals work and how he/she can get access to them in order to develop his/her embedded applications.
See the URL https://www.packtpub.com/hardware-and-creative/beaglebone-essentials for further info.
When not specified into each file header, all the code is published with the GNU General Public License Version 2 as reported into file LICENSE in the root directory of this repository.
To get the latest version of this example codes just use the command:
$ git clone https://github.com/giometti/beaglebone_essentials.git
Or, if you have an older version or you are using the Packt Publishing's code bundle and you think it's not updated, you can get the latest version by using the command:
$ cd <bundle_dir>
$ git pull
Enjoy! :-)