Chip-specific PLL definitions. More...
#include <assert.h>#include <clk/osc.h>#include <regs/xmega_osc.h>#include <status_codes.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | pll_config |
| Hardware-specific representation of PLL configuration. More... | |
Defines | |
Chip-specific PLL characteristics | |
| #define | NR_PLLS 1 |
| Number of on-chip PLLs. | |
| #define | PLL_MIN_HZ 10000000UL |
| Minimum frequency that the PLL can generate. | |
| #define | PLL_MAX_HZ 200000000UL |
| Maximum frequency that the PLL can generate. | |
Enumerations | |
| enum | pll_source { PLL_SRC_RC2MHZ = 0, PLL_SRC_RC32MHZ = 2, PLL_SRC_XOSC = 3, PLL_NR_SOURCES } |
PLL clock source. More... | |
Functions | |
Interaction with the PLL hardware | |
| static void | pll_config_read (struct pll_config *cfg, unsigned int pll_id) |
| Read the currently active configuration of pll_id. | |
| static void | pll_config_write (const struct pll_config *cfg, unsigned int pll_id) |
| Activate the configuration cfg on pll_id. | |
| static void | pll_enable (const struct pll_config *cfg, unsigned int pll_id) |
| Activate the configuration cfg and enable PLL pll_id. | |
| static void | pll_disable (unsigned int pll_id) |
| Disable the PLL identified by pll_id. | |
| static status_t | pll_wait_for_lock (unsigned int pll_id) |
| Wait for PLL pll_id to become locked. | |
PLL configuration | |
|
| |
| #define | pll_get_default_rate(pll_id) |
| Get the default rate in Hz of pll_id. | |
| #define | pll_config_defaults(cfg, pll_id) |
| Initialize PLL configuration using default parameters. | |
| static void | pll_config_init (struct pll_config *cfg, enum pll_source src, unsigned int div, unsigned int mul) |
| Initialize PLL configuration from standard parameters. | |
Chip-specific PLL definitions.
Copyright (C) 2010 Atmel Corporation. All rights reserved.
Definition in file pll.h.
1.6.3