This example shows how to initialize the clock system and output the CPU clock on a dedicated pin.
All SAM4L devices can be used.
This example makes use of the output GPIO function for a generic clock to output the CPU clock on a pin.
The generic clock and its corresponding GPIO pin and function are defined in conf_example2.h. The main system clock source and prescalers, along with any PLL and/or DFLL configuration, if supported, are defined in conf_clock.h.
This software was written for the GNU GCC and IAR for SAM. Other compilers may or may not work.
For further information, visit Microchip.