Microchip® Advanced Software Framework

conf_example2.h File Reference

Clock system example 2 configuration for SAM4L-EK.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Macros

Example configuration
#define GCLK_ID   0
 Generic clock ID. More...
 
#define GCLK_PIN   PIN_PA02A_SCIF_GCLK0
 Generic clock output GPIO pin. More...
 
#define GCLK_FUNCTION   MUX_PA02A_SCIF_GCLK0
 Generic clock function for GPIO pin. More...
 
#define GCLK_SOURCE   GENCLK_SRC_CLK_CPU
 Generic clock source. More...
 
#define GCLK_DIV   1
 Generic clock divider. More...
 

#define GCLK_DIV   1

Generic clock divider.

This is how much the generic clock should divide the frequency of the configured clock source by.

Referenced by main().

#define GCLK_FUNCTION   MUX_PA02A_SCIF_GCLK0

Generic clock function for GPIO pin.

This is the GPIO function for output of the generic clock with the configured ID on the GPIO pin.

Referenced by main().

#define GCLK_ID   0

Generic clock ID.

This is the ID of the generic clock to use.

Referenced by main().

#define GCLK_PIN   PIN_PA02A_SCIF_GCLK0

Generic clock output GPIO pin.

This is the GPIO pin on which the generic clock signal will be output.

Note
Not all GPIO pins can be used for this purpose. Refer to the device's datasheet or device header file for details on which GPIO pins can be used for output of the individual generic clocks.
This is GPIO pin 2, corresponding to PA02.

Referenced by main().

#define GCLK_SOURCE   GENCLK_SRC_CLK_CPU

Generic clock source.

This is the clock source to use for the generic clock.

Referenced by main().