| Xmega Application Note | |||||
Chip-specific generic clock management. More...
#include <stdint.h>#include <avr32/io.h>
Go to the source code of this file.
Data Structures | |
| struct | genclk_config |
| Hardware representation of a set of generic clock parameters. More... | |
Defines | |
Chip-specific generic clock definitions | |
| #define | GENCLK_DIV_MAX ((1 << AVR32_PM_GCCTRL_DIV_SIZE) * 2) |
| Maximum divider supported by the generic clock implementation. | |
Enumerations | |
| enum | genclk_source { GENCLK_SRC_OSC0 = 0, GENCLK_SRC_OSC1 = 1, GENCLK_SRC_PLL0 = 2, GENCLK_SRC_PLL1 = 3 } |
Generic clock source ID. More... | |
Functions | |
Generic clock configuration | |
| static void | genclk_config_defaults (struct genclk_config *cfg, unsigned int id) |
| Initialize cfg to the default configuration for the clock identified by id. | |
| static void | genclk_config_read (struct genclk_config *cfg, unsigned int id) |
| Read the currently active configuration of the clock identified by id into cfg. | |
| static void | genclk_config_set_divider (struct genclk_config *cfg, unsigned int divider) |
| Set a new divider in configuration cfg. | |
| static void | genclk_config_set_source (struct genclk_config *cfg, enum genclk_source src) |
| Select a new source clock src in configuration cfg. | |
| static void | genclk_config_write (const struct genclk_config *cfg, unsigned int id) |
| Activate the configuration cfg on the clock identified by id. | |
Enabling and disabling Generic Clocks | |
| static void | genclk_disable (unsigned int id) |
| Disable the generic clock identified by id. | |
| static void | genclk_enable (const struct genclk_config *cfg, unsigned int id) |
| Activate the configuration cfg on the clock identified by id and enable it. | |
Chip-specific generic clock management.
Copyright (C) 2010 Atmel Corporation. All rights reserved.
Definition in file genclk.h.
Generated on Fri Oct 22 12:15:25 2010 for AVR1300 Using the Xmega ADC by 1.6.3
|