亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
精品日韩99亚洲| 偷拍日韩校园综合在线| 东方欧美亚洲色图在线| 日本不卡高清视频| 日本中文字幕一区二区视频 | 欧美日韩1234| 欧美影视一区在线| 欧美日韩激情在线| 欧美日韩aaaaaa| 91精品国产综合久久精品性色 | 欧美韩国日本不卡| 国产日韩在线不卡| 国产精品久久久久婷婷二区次| 国产精品丝袜在线| 亚洲色欲色欲www在线观看| 亚洲色图视频网| 亚洲一区二区在线播放相泽| 亚洲成av人片在线观看| 奇米影视一区二区三区小说| 久久av中文字幕片| 国产成人高清在线| av亚洲精华国产精华| 色94色欧美sute亚洲线路二| 欧美人与禽zozo性伦| 欧美大片顶级少妇| 欧美国产精品v| 一区二区三区中文在线观看| 天天av天天翘天天综合网| 日韩电影在线一区二区| 国产精品一区二区在线观看不卡 | 国产成人av电影| 91网站最新地址| 欧美群妇大交群的观看方式| 精品国产一区二区在线观看| 欧美国产禁国产网站cc| 夜夜精品视频一区二区| 激情综合网av| www.日韩精品| 亚洲激情图片小说视频| 亚洲成在人线在线播放| 国产毛片精品国产一区二区三区| 99国产精品视频免费观看| 欧美精品777| 国产人成亚洲第一网站在线播放| 亚洲综合久久久| 国产综合久久久久影院| 91成人免费在线| 欧美精品一区二区蜜臀亚洲| 成人免费在线播放视频| 麻豆国产精品官网| 91天堂素人约啪| 3d成人h动漫网站入口| 国产亚洲精品福利| 亚洲一区二区不卡免费| 国产精品一区2区| 欧美日韩综合色| 国产女人18毛片水真多成人如厕| 亚洲综合无码一区二区| 国产黑丝在线一区二区三区| 欧美日韩高清不卡| 国产精品视频在线看| 免费xxxx性欧美18vr| 99re视频精品| 久久精品一区二区三区四区| 亚洲国产精品影院| aaa欧美色吧激情视频| 日韩午夜av一区| 亚洲国产视频一区二区| www.日本不卡| 久久久久97国产精华液好用吗| 亚洲国产精品天堂| aaa国产一区| 久久精品国产久精国产爱| 97久久超碰精品国产| 久久久精品国产免大香伊| 肉丝袜脚交视频一区二区| 91亚洲精品久久久蜜桃网站| 久久久国产午夜精品| 蜜臀av性久久久久蜜臀aⅴ流畅 | 国产成人亚洲综合a∨猫咪| 69av一区二区三区| 一区二区三区国产精华| 成人一区二区三区在线观看 | 婷婷亚洲久悠悠色悠在线播放| 成人激情黄色小说| 久久噜噜亚洲综合| 久久99国产精品麻豆| 欧美一级日韩免费不卡| 香蕉久久夜色精品国产使用方法| 一本色道**综合亚洲精品蜜桃冫| 国产精品私房写真福利视频| 国产福利精品导航| 久久综合色天天久久综合图片| 蜜臀91精品一区二区三区| 欧美老肥妇做.爰bbww| 亚洲电影一区二区| 欧美最猛黑人xxxxx猛交| 亚洲人成精品久久久久| 91亚洲精华国产精华精华液| 中文字幕日韩一区| 99久久夜色精品国产网站| 国产精品免费人成网站| 成人av在线影院| 国产99久久久精品| 久久久久久久免费视频了| 国产精品一线二线三线| 国产网红主播福利一区二区| 高清在线观看日韩| 中文字幕在线一区| 91美女片黄在线| 亚洲精品亚洲人成人网在线播放| 色欧美日韩亚洲| 亚洲一二三四在线观看| 制服丝袜亚洲网站| 久久99热狠狠色一区二区| 26uuu国产在线精品一区二区| 国产原创一区二区| 中文字幕 久热精品 视频在线| 成人免费观看av| 亚洲激情欧美激情| 在线成人免费观看| 精品亚洲成a人在线观看| 久久美女艺术照精彩视频福利播放| 国产69精品久久久久777| 国产精品久久久久久久岛一牛影视| 97久久精品人人爽人人爽蜜臀| 亚洲欧美二区三区| 欧美肥妇毛茸茸| 韩国三级中文字幕hd久久精品| 国产日韩精品一区| 在线中文字幕不卡| 日本亚洲视频在线| 久久五月婷婷丁香社区| av激情成人网| 视频一区在线视频| 国产午夜亚洲精品不卡| 国产精品久久久久aaaa| 91激情五月电影| 另类小说欧美激情| 综合久久久久久久| 911国产精品| 成人免费黄色在线| 首页综合国产亚洲丝袜| 国产色婷婷亚洲99精品小说| 色噜噜偷拍精品综合在线| 麻豆久久一区二区| 中文字幕一区在线观看视频| 欧美理论电影在线| 成人污污视频在线观看| 午夜激情久久久| 国产精品网站在线| 欧美肥妇毛茸茸| 波多野结衣中文字幕一区二区三区 | 日韩亚洲欧美在线| 99久久99久久精品国产片果冻| 日本麻豆一区二区三区视频| 中文av一区二区| 91精品国产麻豆| 91社区在线播放| 国产一区二区免费视频| 亚洲国产精品自拍| 国产精品国产三级国产a| 欧美一区二区免费观在线| www.av精品| 极品瑜伽女神91| 亚洲观看高清完整版在线观看| 国产亚洲一二三区| 91精品国产一区二区三区香蕉 | 国产无遮挡一区二区三区毛片日本| 欧美综合天天夜夜久久| 国产精品18久久久久久久久| 午夜视频一区二区| 亚洲欧美色图小说| 中文字幕不卡一区| 久久只精品国产| 欧美一级国产精品| 在线观看日韩av先锋影音电影院| 国产大陆a不卡| 六月婷婷色综合| 亚洲成人激情社区| 亚洲精品成人精品456| 中文字幕欧美日韩一区| 久久综合久久久久88| 日韩视频免费观看高清完整版| 欧美亚洲国产一区二区三区va| 成人av在线播放网站| 国产精品一级在线| 国产一区二区三区黄视频| 蜜桃视频在线一区| 免费在线一区观看| 日韩av中文字幕一区二区三区| 亚洲最大成人网4388xx| 亚洲精品免费电影| 自拍偷拍亚洲激情| 国产精品久久久久一区二区三区共| 久久久99精品久久| 久久精品人人爽人人爽| www久久精品| 久久夜色精品国产欧美乱极品| 欧美sm极限捆绑bd|