power_drv.h File Reference

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()   (Set_cpu_prescaler(0))
 This function reset the internal CPU core clock 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())
 This function makes the AVR core enter idle mode.
#define Enter_power_down_mode()   (set_power_down_mode())
 This function makes the AVR core enter power down mode.
#define Enter_adc_noise_reduction_mode()   (set_adc_noise_reduction_mode())
 This function makes the AVR core enter adc noise reduction mode.
#define Enter_power_save_mode()   (set_power_save_mode())
 This function makes the AVR core enter power save mode.
#define Enter_standby_mode()   (set_standby_mode())
 This function makes the AVR core enter standby mode.
#define Enter_ext_standby_mode()   (set_ext_standby_mode())
 This function makes the AVR core enter extended standby mode.

Functions

void Set_cpu_prescaler (U8 x)
 This function configure the internal CPU core clock prescaler value.
void set_idle_mode (void)
 This function makes the AVR core enter idle mode.
void set_power_down_mode (void)
 This function makes the AVR core enter power down mode.
void set_adc_noise_reduction_mode (void)
 This function makes the AVR core enter adc noise reduction mode.
void set_power_save_mode (void)
 This function makes the AVR core enter power save mode.
void set_standby_mode (void)
 This function makes the AVR core enter standby mode.
void set_ext_standby_mode (void)
 This function makes the AVR core enter extended standby mode.


Detailed Description

This 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 - Compiler: IAR EWAVR and GNU GCC for AVR

Definition in file power_drv.h.


Generated on Mon Sep 14 13:24:11 2009 for ATMEL by  doxygen 1.5.3