Microchip® Advanced Software Framework

conf_example2.h File Reference

Clock system example 2 configuration for AT32EVK1105.

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

Macros

#define AVR32_PM_GCLK_GCLK2   2
 
Example configuration
#define GCLK_ID   AVR32_PM_GCLK_GCLK2
 Generic clock ID. More...
 
#define GCLK_PIN   AVR32_PM_GCLK_2_1_PIN
 Generic clock output GPIO pin. More...
 
#define GCLK_FUNCTION   AVR32_PM_GCLK_2_1_FUNCTION
 Generic clock function for GPIO pin. More...
 
#define GCLK_SOURCE   GENCLK_SRC_PLL0
 Generic clock source. More...
 
#define GCLK_DIV   2
 Generic clock divider. More...
 

#define AVR32_PM_GCLK_GCLK2   2
#define GCLK_DIV   2

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_PM_GCLK_2_1_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_PM_GCLK_GCLK2

Generic clock ID.

This is the ID of the generic clock to use.

Referenced by main().

#define GCLK_PIN   AVR32_PM_GCLK_2_1_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 62, corresponding to PB30.

Referenced by main().

#define GCLK_SOURCE   GENCLK_SRC_PLL0

Generic clock source.

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

Referenced by main().