Any C code example controlling PWM on BeaglePlay

Any example C code controlling PWM on BeaglePlay?