This project inits a SAM E54 with full speed (120 MHz) and generates two 16-bit PWMs. Only CMSIS and Atmel DFP libraries are used.
You need to have Atmel Studio 7 to open the project, although it can be imported in other environments like IAR.
Feel free to branch my project to add initializations for different use cases or even a different SAM controller.