Change Arduino Due PWM Frequency

you can change the pwm frequency and duty cycle with my code

http://forum.arduino.cc/index.php?topic=242769.0