Light and simple PWM control library design for Beaglebone