亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pm.h

?? 最新的FreeRTOS源代碼
?? H
字號:
/*This file has been prepared for Doxygen automatic documentation generation.*/
/*! \file *********************************************************************
 *
 * \brief Power Manager driver.
 *
 *
 * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32
 * - Supported devices:  All AVR32 devices.
 * - AppNote:
 *
 * \author               Atmel Corporation: http://www.atmel.com \n
 *                       Support and FAQ: http://support.atmel.no/
 *
 *****************************************************************************/

/* Copyright (c) 2007, Atmel Corporation All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. The name of ATMEL may not be used to endorse or promote products derived
 * from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
 * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */


#ifndef _PM_H_
#define _PM_H_

#include <avr32/io.h>
#include "compiler.h"
#include "preprocessor.h"


/*! \brief Sets the MCU in the specified sleep mode.
 *
 * \param mode Sleep mode:
 *   \arg \c AVR32_PM_SMODE_IDLE: Idle;
 *   \arg \c AVR32_PM_SMODE_FROZEN: Frozen;
 *   \arg \c AVR32_PM_SMODE_STANDBY: Standby;
 *   \arg \c AVR32_PM_SMODE_STOP: Stop;
 *   \arg \c AVR32_PM_SMODE_SHUTDOWN: Shutdown (DeepStop);
 *   \arg \c AVR32_PM_SMODE_STATIC: Static.
 */
#define SLEEP(mode)   {__asm__ __volatile__ ("sleep "STRINGZ(mode));}


/*! \brief Gets the MCU reset cause.
 *
 * \param pm Base address of the Power Manager instance (i.e. &AVR32_PM).
 *
 * \return The MCU reset cause which can be masked with the
 *         \c AVR32_PM_RCAUSE_x_MASK bit-masks to isolate specific causes.
 */
#if __GNUC__
__attribute__((__always_inline__))
#endif
extern __inline__ unsigned int pm_get_reset_cause(volatile avr32_pm_t *pm)
{
  return pm->rcause;
}


/*!
 * \brief This function will enable the external clock mode of the oscillator 0.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_enable_osc0_ext_clock(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the crystal mode of the oscillator 0.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param fosc0 Oscillator 0 crystal frequency (Hz)
 */
extern void pm_enable_osc0_crystal(volatile avr32_pm_t *pm, unsigned int fosc0);


/*!
 * \brief This function will enable the oscillator 0 to be used with a startup time.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param startup Clock 0 startup time. Time is expressed in term of RCOsc periods (3-bit value)
 */
extern void pm_enable_clk0(volatile avr32_pm_t *pm, unsigned int startup);


/*!
 * \brief This function will disable the oscillator 0.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_disable_clk0(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the oscillator 0 to be used with no startup time.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param startup Clock 0 startup time. Time is expressed in term of RCOsc periods (3-bit value) but not checked.
 */
extern void pm_enable_clk0_no_wait(volatile avr32_pm_t *pm, unsigned int startup);


/*!
 * \brief This function will wait until the Osc0 clock is ready.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_wait_for_clk0_ready(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the external clock mode of the oscillator 1.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_enable_osc1_ext_clock(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the crystal mode of the oscillator 1.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param fosc1 Oscillator 1 crystal frequency (Hz)
 */
extern void pm_enable_osc1_crystal(volatile avr32_pm_t *pm, unsigned int fosc1);


/*!
 * \brief This function will enable the oscillator 1 to be used with a startup time.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param startup Clock 1 startup time. Time is expressed in term of RCOsc periods (3-bit value)
 */
extern void pm_enable_clk1(volatile avr32_pm_t *pm, unsigned int startup);


/*!
 * \brief This function will disable the oscillator 1.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_disable_clk1(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the oscillator 1 to be used with no startup time.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param startup Clock 1 startup time. Time is expressed in term of RCOsc periods (3-bit value) but not checked.
 */
extern void pm_enable_clk1_no_wait(volatile avr32_pm_t *pm, unsigned int startup);


/*!
 * \brief This function will wait until the Osc1 clock is ready.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_wait_for_clk1_ready(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the external clock mode of the 32-kHz oscillator.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_enable_osc32_ext_clock(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the crystal mode of the 32-kHz oscillator.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_enable_osc32_crystal(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the oscillator 32 to be used with a startup time.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param startup Clock 32 kHz startup time. Time is expressed in term of RCOsc periods (3-bit value)
 */
extern void pm_enable_clk32(volatile avr32_pm_t *pm, unsigned int startup);


/*!
 * \brief This function will disable the oscillator 32.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_disable_clk32(volatile avr32_pm_t *pm);


/*!
 * \brief This function will enable the oscillator 32 to be used with no startup time.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param startup Clock 32 kHz startup time. Time is expressed in term of RCOsc periods (3-bit value) but not checked.
 */
extern void pm_enable_clk32_no_wait(volatile avr32_pm_t *pm, unsigned int startup);


/*!
 * \brief This function will wait until the osc32 clock is ready.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_wait_for_clk32_ready(volatile avr32_pm_t *pm);


/*!
 * \brief This function will select all the power manager clocks.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param pbadiv Peripheral Bus A clock divisor enable
 * \param pbasel Peripheral Bus A select
 * \param pbbdiv Peripheral Bus B clock divisor enable
 * \param pbbsel Peripheral Bus B select
 * \param hsbdiv High Speed Bus clock divisor enable (CPU clock = HSB clock)
 * \param hsbsel High Speed Bus select (CPU clock = HSB clock )
 */
extern void pm_cksel(volatile avr32_pm_t *pm, unsigned int pbadiv, unsigned int pbasel, unsigned int pbbdiv, unsigned int pbbsel, unsigned int hsbdiv, unsigned int hsbsel);


/*!
 * \brief This function will setup a generic clock.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param gc generic clock number (0 for gc0...)
 * \param osc_or_pll Use OSC (=0) or PLL (=1)
 * \param pll_osc Select Osc0/PLL0 or Osc1/PLL1
 * \param diven Generic clock divisor enable
 * \param div Generic clock divisor
 */
extern void pm_gc_setup(volatile avr32_pm_t *pm, unsigned int gc, unsigned int osc_or_pll, unsigned int pll_osc, unsigned int diven, unsigned int div);


/*!
 * \brief This function will enable a generic clock.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param gc generic clock number (0 for gc0...)
 */
extern void pm_gc_enable(volatile avr32_pm_t *pm, unsigned int gc);


/*!
 * \brief This function will disable a generic clock.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param gc generic clock number (0 for gc0...)
 */
extern void pm_gc_disable(volatile avr32_pm_t *pm, unsigned int gc);


/*!
 * \brief This function will setup a PLL.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param pll PLL number(0 for PLL0, 1 for PLL1)
 * \param mul PLL MUL in the PLL formula
 * \param div PLL DIV in the PLL formula
 * \param osc OSC number (0 for osc0, 1 for osc1)
 * \param lockcount PLL lockount
 */
extern void pm_pll_setup(volatile avr32_pm_t *pm, unsigned int pll, unsigned int mul, unsigned int div, unsigned int osc, unsigned int lockcount);


/*!
 * \brief This function will set a PLL option.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param pll PLL number(0 for PLL0, 1 for PLL1)
 * \param pll_freq Set to 1 for VCO frequency range 80-180MHz, set to 0 for VCO frequency range 160-240Mhz.
 * \param pll_div2 Divide the PLL output frequency by 2 (this settings does not change the FVCO value)
 * \param pll_wbwdisable 1 Disable the Wide-Bandith Mode (Wide-Bandwith mode allow a faster startup time and out-of-lock time). 0 to enable the Wide-Bandith Mode.
 */
extern void pm_pll_set_option(volatile avr32_pm_t *pm, unsigned int pll, unsigned int  pll_freq, unsigned int  pll_div2, unsigned int  pll_wbwdisable);


/*!
 * \brief This function will get a PLL option.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param pll PLL number(0 for PLL0, 1 for PLL1)
 * \return       Option
 */
extern unsigned int pm_pll_get_option(volatile avr32_pm_t *pm, unsigned int pll);


/*!
 * \brief This function will enable a PLL.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param pll PLL number(0 for PLL0, 1 for PLL1)
 */
extern void pm_pll_enable(volatile avr32_pm_t *pm, unsigned int pll);


/*!
 * \brief This function will disable a PLL.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param pll PLL number(0 for PLL0, 1 for PLL1)
 */
extern void pm_pll_disable(volatile avr32_pm_t *pm, unsigned int pll);


/*!
 * \brief This function will wait for PLL0 locked
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_wait_for_pll0_locked(volatile avr32_pm_t *pm);


/*!
 * \brief This function will wait for PLL1 locked
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 */
extern void pm_wait_for_pll1_locked(volatile avr32_pm_t *pm);


/*!
 * \brief This function will switch the power manager main clock.
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param clock Clock to be switched on. AVR32_PM_MCSEL_SLOW for RCOsc, AVR32_PM_MCSEL_OSC0 for Osc0, AVR32_PM_MCSEL_PLL0 for PLL0.
 */
extern void pm_switch_to_clock(volatile avr32_pm_t *pm, unsigned long clock);


/*!
 * \brief Switch main clock to clock Osc0 (crystal mode)
 * \param pm Base address of the Power Manager (i.e. &AVR32_PM)
 * \param fosc0 Oscillator 0 crystal frequency (Hz)
 * \param startup Crystal 0 startup time. Time is expressed in term of RCOsc periods (3-bit value)
 */
extern void pm_switch_to_osc0(volatile avr32_pm_t *pm, unsigned int fosc0, unsigned int startup);


#endif  // _PM_H_

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国模一区二区三区白浆| 精品国产乱码久久久久久影片| 国产精品卡一卡二卡三| 成人免费观看男女羞羞视频| 国产性色一区二区| 成人av免费在线观看| 亚洲欧美日韩综合aⅴ视频| 色激情天天射综合网| 天天色综合成人网| 精品少妇一区二区三区视频免付费 | 国产精品中文有码| 国产精品无码永久免费888| 成人午夜av影视| 亚洲精品五月天| 欧美一区二区三区在线看| 精品一区二区综合| 国产精品国产三级国产aⅴ中文| 99久久国产综合精品色伊| 亚洲国产精品一区二区www | 久久视频一区二区| 福利电影一区二区三区| 亚洲狠狠丁香婷婷综合久久久| 欧美日韩精品欧美日韩精品一综合| 麻豆精品在线看| 国产精品久久久久久久久久免费看| 欧美三级电影在线观看| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲日本免费电影| 欧美一级黄色录像| www.亚洲色图.com| 美女免费视频一区二区| 成人欧美一区二区三区白人| 欧美日韩国产经典色站一区二区三区 | 色老汉av一区二区三区| 久久99九九99精品| 亚洲精品国产一区二区精华液 | 亚洲国产日韩a在线播放| 久久精品一级爱片| 欧美一区二区二区| 91蝌蚪porny九色| 激情综合网av| 亚洲高清免费视频| 亚洲天堂av老司机| 久久夜色精品一区| 欧美日韩亚洲国产综合| 99riav一区二区三区| 国产一区二区0| 天堂影院一区二区| 亚洲码国产岛国毛片在线| 精品国产精品一区二区夜夜嗨| 色视频一区二区| 成人在线综合网站| 国产裸体歌舞团一区二区| 青青草国产精品97视觉盛宴| 一区二区三区四区在线播放| 欧美激情一区二区三区| 久久久综合激的五月天| 欧美绝品在线观看成人午夜影视| 不卡的看片网站| 国产91精品在线观看| 国产伦精品一区二区三区视频青涩 | 欧美v亚洲v综合ⅴ国产v| 欧美男人的天堂一二区| 在线看日韩精品电影| 一本色道久久加勒比精品 | 在线亚洲一区二区| 精品久久久久久久久久久久久久久| 91在线观看美女| eeuss鲁片一区二区三区在线看| 国产在线一区二区| 国产伦理精品不卡| 国产精品影视在线观看| 国产在线麻豆精品观看| 久久精品国产秦先生| 蜜臀久久久久久久| 奇米888四色在线精品| 日本系列欧美系列| 青青草国产精品97视觉盛宴| 欧美aaa在线| 精品综合免费视频观看| 久草热8精品视频在线观看| 久久99国产精品久久99 | 久久久久久免费| 国产日韩v精品一区二区| 国产日韩欧美综合一区| 国产精品另类一区| 亚洲桃色在线一区| 亚洲黄色性网站| 亚洲aⅴ怡春院| 美女网站视频久久| 精品一区二区三区av| 国产91丝袜在线播放| av在线不卡免费看| 91黄色免费版| 欧美一区二区三区喷汁尤物| 亚洲精品在线观看网站| 国产精品国产三级国产三级人妇| 中文字幕日韩一区| 亚欧色一区w666天堂| 久久99精品视频| 成人午夜伦理影院| 欧美日韩亚洲高清一区二区| 精品入口麻豆88视频| 国产精品网站导航| 亚洲一区二区三区在线看| 青青草伊人久久| 成人av网在线| 91麻豆精品国产91久久久久| 久久久噜噜噜久噜久久综合| 亚洲欧美在线视频观看| 免费精品视频在线| 白白色 亚洲乱淫| 欧美日韩国产美| 国产欧美一区二区三区鸳鸯浴 | 中文字幕日本不卡| 偷拍一区二区三区| 国产a区久久久| 欧美精选午夜久久久乱码6080| 久久久美女毛片| 亚洲成人一区二区在线观看| 国产乱码精品一品二品| 欧美日韩综合在线| 国产精品久久夜| 久久机这里只有精品| 91老司机福利 在线| 久久久久久久综合日本| 成人高清视频免费观看| 日韩一区二区不卡| 亚洲一卡二卡三卡四卡无卡久久| 韩国午夜理伦三级不卡影院| 在线视频亚洲一区| 国产精品理论片| 国产一区激情在线| 91精品啪在线观看国产60岁| 最近中文字幕一区二区三区| 国产真实乱对白精彩久久| 欧美精品欧美精品系列| 日韩一区中文字幕| 国产高清视频一区| 日韩欧美中文字幕一区| 亚洲电影在线播放| 99国产精品一区| 日本一区二区三区免费乱视频| 免费高清在线视频一区·| 欧洲色大大久久| 国产精品国产三级国产普通话三级 | 日韩专区中文字幕一区二区| 色狠狠一区二区三区香蕉| 国产精品视频在线看| 九九久久精品视频| 91精品国产综合久久小美女| 亚洲午夜影视影院在线观看| 99精品热视频| 中文字幕av资源一区| 国产曰批免费观看久久久| 精品久久人人做人人爱| 看片的网站亚洲| 精品国产髙清在线看国产毛片 | 国产高清一区日本| 久久亚洲捆绑美女| 国产真实乱偷精品视频免| 日韩精品一区二区三区中文精品| 舔着乳尖日韩一区| 7777精品伊人久久久大香线蕉经典版下载 | 91在线视频18| 亚洲精品免费在线| 91极品视觉盛宴| 亚洲成av人片在线观看无码| 亚洲欧美激情小说另类| 不卡一区二区三区四区| 亚洲视频免费在线| 色欧美88888久久久久久影院| 亚洲精品国产第一综合99久久 | 亚洲欧洲日产国产综合网| 97久久精品人人做人人爽| 日韩一区有码在线| 欧美做爰猛烈大尺度电影无法无天| 亚洲精品乱码久久久久| 欧洲精品中文字幕| 秋霞av亚洲一区二区三| 精品国产自在久精品国产| 国产精品自拍网站| 亚洲欧美一区二区在线观看| 91国在线观看| 麻豆精品蜜桃视频网站| 久久精品一区二区| 色先锋资源久久综合| 丝袜亚洲另类丝袜在线| 久久噜噜亚洲综合| 91女厕偷拍女厕偷拍高清| 午夜久久久久久电影| 久久奇米777| 一本到不卡免费一区二区| 天天免费综合色| 久久一日本道色综合| 91麻豆免费观看| 日韩精品一级中文字幕精品视频免费观看 | 欧美在线视频你懂得| 美腿丝袜亚洲一区| 国产清纯白嫩初高生在线观看91|