drivers/pm/pm.c File Reference

Power Manager chip-independent support. More...

#include <assert.h>
#include <interrupt.h>
#include <io.h>
#include <status-codes.h>
#include <timeout.h>
#include <chip/clk.h>

Include dependency graph for pm.c:

Go to the source code of this file.

Functions

void pm_priv_set_main_clock (enum pm_mainclk_src source, unsigned long rate)
 Set the source for the main clock to source, which is running at rate Hz.

Variables

unsigned long main_clock_rate = BOARD_OSC0_HZ
 The main clock rate in Hz, if not constant.


Detailed Description

Power Manager chip-independent support.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file pm.c.


Function Documentation

void pm_priv_set_main_clock ( enum pm_mainclk_src  source,
unsigned long  rate 
)

Set the source for the main clock to source, which is running at rate Hz.

Definition at line 66 of file pm.c.

References assert, cpu_irq_restore(), cpu_irq_save(), and main_clock_rate.

Here is the call graph for this function:


Variable Documentation

unsigned long main_clock_rate = BOARD_OSC0_HZ

The main clock rate in Hz, if not constant.

Definition at line 60 of file pm.c.

Referenced by pm_priv_set_main_clock().


Generated on Tue Sep 15 10:19:35 2009 for libavr32 by  doxygen 1.5.8