I suggest researching the Due forum, the SAM3X pdf, Atmel, GitHub and elsewhere for more information. I don't believe you'll find a PWM library that will meet your needs, it would more than likely require register level programming and advanced level code development.