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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pm.h

?? FreeRTOS V4.2.1,增加了AVR32 UC3 和 LPC2368 的支持
?? 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 email: avr32@atmel.com
 *
 *****************************************************************************/

/* 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_

#if __GNUC__
#  include <avr32/io.h>
#elif __ICCAVR32__
#  include <avr32/iouc3a0512.h>
#  include <avr32/uc3a0512.h>
#else
#  error Unknown compiler
#endif

#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 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);


//FIXME update this header -SM
/*!
 * \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);


//FIXME update this header -SM
/*!
 * \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
 * \param div
 * \param osc
 * \param lockcount
 */
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);


//FIXME update this header -SM
/*!
 * \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);


//FIXME update this header -SM
/*!
 * \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_

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91蜜桃免费观看视频| 国产福利91精品一区| 国产精品免费久久久久| 久久亚洲一级片| 欧美va亚洲va香蕉在线| 日韩视频一区在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 日韩一卡二卡三卡四卡| 欧美午夜一区二区三区| 欧美日韩免费高清一区色橹橹 | 欧美亚洲国产bt| 91黄色免费网站| 欧美亚洲自拍偷拍| 91精品国产综合久久久久久久久久 | 久久久久久久综合| 国产精品情趣视频| 亚洲三级小视频| 亚洲国产日韩精品| 日韩精品1区2区3区| 极品少妇xxxx偷拍精品少妇| 高清视频一区二区| 91蜜桃在线免费视频| 日本道精品一区二区三区| 欧美系列亚洲系列| 26uuu国产在线精品一区二区| 久久免费看少妇高潮| 亚洲人吸女人奶水| 午夜成人免费电影| 国产精品夜夜嗨| 色婷婷久久久久swag精品| 欧美欧美午夜aⅴ在线观看| 欧美va亚洲va在线观看蝴蝶网| 国产亚洲欧美激情| 五月综合激情网| 国产91综合一区在线观看| 在线精品视频小说1| 精品日韩在线观看| 一区二区三区91| 国产精品一区二区在线观看不卡 | 亚洲成人先锋电影| 激情av综合网| 91福利视频在线| 国产午夜精品一区二区| 亚洲综合自拍偷拍| 成人国产精品免费观看动漫 | 国产成人免费av在线| 欧美日韩国产bt| 国产精品天天看| 极品少妇xxxx精品少妇| 欧美在线观看视频一区二区三区| 国产亚洲欧美在线| 免费视频一区二区| 欧美日本一道本在线视频| 国产精品免费视频网站| 蜜桃久久久久久久| 欧美日韩1234| 一区二区三区四区国产精品| 成人性色生活片| 精品美女在线观看| 日本欧美一区二区在线观看| 91精品91久久久中77777| 国产精品久久久久久久久果冻传媒| 免费观看在线综合| 欧美剧情片在线观看| 亚洲精品中文在线观看| 成a人片国产精品| 国产日韩av一区| 国产自产v一区二区三区c| 日韩视频免费直播| 免费美女久久99| 欧美电影在哪看比较好| 亚洲第一成年网| 色成人在线视频| 亚洲日本在线a| 91视视频在线观看入口直接观看www | 秋霞电影网一区二区| 欧美精品99久久久**| 午夜精品久久久久久| 欧美视频在线一区二区三区 | 亚洲mv在线观看| 欧美影院午夜播放| 亚洲成国产人片在线观看| 欧美性受极品xxxx喷水| 亚洲一区二区在线免费看| 欧美日韩在线免费视频| 亚洲成a人片综合在线| 欧美精品18+| 激情文学综合丁香| 国产拍揄自揄精品视频麻豆| 国产精品亚洲成人| 中文字幕一区视频| 在线观看91视频| 日韩精品欧美精品| 精品成人a区在线观看| 国产成人午夜高潮毛片| 日韩理论片在线| 欧美视频在线观看一区二区| 美日韩一级片在线观看| 26uuu国产日韩综合| 99九九99九九九视频精品| 樱花影视一区二区| 91精品国产黑色紧身裤美女| 国产在线播放一区二区三区| 国产精品久久久久婷婷| 欧美网站大全在线观看| 黄色小说综合网站| 亚洲欧美日韩久久| 精品免费日韩av| 99re66热这里只有精品3直播| 午夜精品一区在线观看| 26uuu成人网一区二区三区| 99久久婷婷国产综合精品电影 | **欧美大码日韩| 91精品国产综合久久精品| 高清成人免费视频| 午夜电影一区二区| 中文字幕一区二区三区av| 日韩一级片网站| 97精品超碰一区二区三区| 另类综合日韩欧美亚洲| 亚洲男人都懂的| 日韩欧美在线影院| 色婷婷综合久久久久中文| 国产精品一区一区三区| 天天色综合天天| 亚洲视频资源在线| 国产亚洲1区2区3区| 欧美精品 日韩| 色婷婷av一区二区三区大白胸| 国产麻豆午夜三级精品| 亚洲成人高清在线| 一区二区三区免费网站| 国产精品久久久久久久久动漫| 欧美成人三级电影在线| 欧美午夜精品一区二区三区| 免费av成人在线| 一区二区三区四区蜜桃| 国产精品成人一区二区艾草| 久久久精品免费网站| 欧美一卡二卡三卡| 51精品秘密在线观看| 欧美伊人精品成人久久综合97| 丁香激情综合国产| 国产成人免费视| 国产精品88888| 国产一区 二区| 国产伦精品一区二区三区在线观看| 日韩国产精品久久久久久亚洲| 亚洲一区二区三区四区在线| 亚洲手机成人高清视频| 亚洲视频综合在线| 亚洲日本va午夜在线影院| 国产精品成人免费精品自在线观看| 久久久天堂av| 国产视频一区在线观看| 亚洲精品在线三区| 久久精品亚洲麻豆av一区二区 | 成人午夜电影久久影院| 国产成人午夜精品影院观看视频| 国产乱码精品一区二区三区五月婷| 精品一区二区三区蜜桃| 狠狠色丁香婷综合久久| 国产成人午夜电影网| 国产成人av资源| 99v久久综合狠狠综合久久| 93久久精品日日躁夜夜躁欧美| 99久久777色| 欧美日韩一区二区欧美激情| 欧美日韩国产bt| 精品国产区一区| 国产片一区二区| 亚洲男人的天堂一区二区| 亚洲欧美国产毛片在线| 日韩中文字幕亚洲一区二区va在线 | 欧美日本一区二区在线观看| 在线综合+亚洲+欧美中文字幕| 精品日韩一区二区三区免费视频| 久久久综合精品| 日韩毛片一二三区| 亚洲成在人线免费| 国产一区二区三区在线观看免费视频 | 一区二区视频在线看| 日韩国产欧美在线观看| 懂色av一区二区三区蜜臀 | 亚洲图片有声小说| 麻豆一区二区在线| av电影天堂一区二区在线| 欧美日韩一区二区三区在线| 欧美大白屁股肥臀xxxxxx| 国产精品女主播av| 亚洲综合激情网| 国产制服丝袜一区| 欧美亚洲高清一区| 亚洲国产电影在线观看| 偷拍一区二区三区四区| 国产成人精品亚洲午夜麻豆| 欧美日韩亚洲国产综合| 中文字幕免费不卡在线| 美女视频黄 久久| 一本久久综合亚洲鲁鲁五月天|