?? power_drv.c
字號:
//! @file power_drv.c,v
//!
//! 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.
//!
//! @brief This file contains the Power management driver routines.
//!
//! This file contains the Power management driver routines.
//!
//! @version 1.3 at90usb128-demo-cdc-1_0_3 $Id: power_drv.c,v 1.3 2006/03/06 10:38:30 rletendu Exp $
//!
//! @todo Implemets adc, stanby, extended stanby and power save modes
//! @bug
//_____ I N C L U D E S ____________________________________________________
#include "config.h"
#include "power_drv.h"
//_____ M A C R O S ________________________________________________________
//_____ D E C L A R A T I O N ______________________________________________
//! set_power_down_mode.
//!
//! This function makes the AVR core enter power down mode.
//!
//! @param none
//!
//! @return none.
//!
void set_power_down_mode(void)
{
Setup_power_down_mode();
Sleep_instruction();
}
//! set_idle_mode.
//!
//! This function makes the AVR core enter idle mode.
//!
//! @param none
//!
//! @return none.
//!
void set_idle_mode(void)
{
Setup_idle_mode();
Sleep_instruction();
}
//! set_adc_noise_reduction_mode.
//!
//! This function makes the AVR core enter adc noise reduction mode.
//!
//! @param none
//!
//! @return none.
//!
void set_adc_noise_reduction_mode(void)
{
Setup_adc_noise_reduction_mode();
Sleep_instruction();
}
//! set_power_save_mode.
//!
//! This function makes the AVR core enter power save mode.
//!
//! @param none
//!
//! @return none.
//!
void set_power_save_mode(void)
{
Setup_power_save_mode();
Sleep_instruction();
}
//! set_standby_mode.
//!
//! This function makes the AVR core enter standby mode.
//!
//! @param none
//!
//! @return none.
//!
void set_standby_mode(void)
{
Setup_standby_mode();
Sleep_instruction();
}
//! set_ext_standby_mode.
//!
//! This function makes the AVR core enter extended standby mode.
//!
//! @param none
//!
//! @return none.
//!
void set_ext_standby_mode(void)
{
Setup_ext_standby_mode();
Sleep_instruction();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -