This is a copy of the implementation of the formerly embedded PWM peripheral that was available only in the demo version. Use it as a template for your own PWM implementation. See also UserPeripheral-PWMandTimer.c.