- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

# power_drv.h File Reference

,vThis file contains the Power Management low level driver definition This module allows to configure the different power mode of the AVR core and also to setup the the internal clock prescaler More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Defines
#define | Setup_idle_mode() (SMCR=0,SMCR |= (1<<SE))
#define | Setup_power_down_mode() (SMCR=0,SMCR |= (1<<SE)+(1<<SM1))
#define | Setup_adc_noise_reduction_mode() (SMCR=0,SMCR |= (1<<SE)+(1<<SM0))
#define | Setup_power_save_mode() (SMCR=0,SMCR |= (1<<SE)+(1<<SM1)+(1<<SM0))
#define | Setup_standby_mode() (SMCR=0,SMCR |= (1<<SE)+(1<<SM2)+(1<<SM1))
#define | Setup_ext_standby_mode() (SMCR=0,SMCR |= (1<<SE)+(1<<SM2)+(1<<SM1)+(1<<SM0))
#define | Clear_prescaler() (CLKPR = (1<<CLKPCE),CLKPR = 0)
| Clear_prescaler.
#define | Set_prescaler(x) (CLKPR = (1<<CKLPCE),CLKPR = x)
| Set_prescaler.
#define | Sleep_instruction() {asm("SLEEP");}
#define | Set_power_down_mode() set_power_down_mode()
#define | Set_idle_mode() set_idle_mode()
#define | Enter_idle_mode() (set_idle_mode())
| Enter_idle_mode.
#define | Enter_power_down_mode() (set_power_down_mode())
| Enter_power_down_mode.
#define | Enter_adc_noise_reduction_mode() (set_adc_noise_reduction_mode())
| Enter_adc_noise_reduction_mode.
#define | Enter_power_save_mode() (set_power_save_mode())
| Enter_power_save_mode.
#define | Enter_standby_mode() (set_standby_mode())
| Enter_standby_mode.
#define | Enter_ext_standby_mode() (set_ext_standby_mode())
| Enter_ext_standby_mode.
## Functions
void | set_idle_mode (void)
| set_idle_mode.
void | set_power_down_mode (void)
| set_power_down_mode.
void | set_adc_noise_reduction_mode (void)
| set_adc_noise_reduction_mode.
void | set_power_save_mode (void)
| set_power_save_mode.
void | set_standby_mode (void)
| set_standby_mode.
void | set_ext_standby_mode (void)
| set_ext_standby_mode.

## Detailed Description

,vThis file contains the Power Management low level driver definition This module allows to configure the different power mode of the AVR core and also to setup the the internal clock prescaler

Copyright (c) 2006 Atmel.

Use of this program is subject to Atmel's End User License Agreement. Please read file license.txt for copyright notice.

Version:
  1.1 at90usb162-2enum-mouse_ms-1_0_1
  Id
    power_drv.h,v 1.1 2006/08/29 15:58:42 arobert Exp

Todo:

Bug:

Definition in file power_drv.h.