Change Arduino Due PWM Frequency

HI, I'm trying to change the frequency on pwm in my arduino due. But I got some mistakes with the software. I tried to use this code: http://www.atmel.com/Images/doc2682.pdf ... But it seems that arduino software can't compilate it.

I've already solve it... For who is interested you can change the frequency in variant.cpp

williamgomex:
I've already solved it... For who is interested you can change the frequency in variant.cpp

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

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