Microchip® Advanced Software Framework

conf_example2.h File Reference

Clock system example 2 configuration for UC3C-EK.

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

Macros

Example configuration
#define GCLK_ID   AVR32_SCIF_GCLK_GCLK0PIN
 Generic clock ID. More...
 
#define GCLK_PIN   AVR32_SCIF_GCLK_0_4_PIN
 Generic clock output GPIO pin. More...
 
#define GCLK_FUNCTION   AVR32_SCIF_GCLK_0_4_FUNCTION
 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   AVR32_SCIF_GCLK_0_4_FUNCTION

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   AVR32_SCIF_GCLK_GCLK0PIN

Generic clock ID.

This is the ID of the generic clock to use.

Referenced by main().

#define GCLK_PIN   AVR32_SCIF_GCLK_0_4_PIN

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 118, corresponding to PD22 (LED3).

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().