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

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

?? pm.h

?? new freertos source code V5.0.3
?? 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一区二区三区免费野_久草精品视频
久久精品国产99国产| 91精品国产综合久久久久久久久久| 日韩制服丝袜先锋影音| 有码一区二区三区| 一区二区在线观看视频在线观看| 日本一区二区三区免费乱视频 | 久久se精品一区精品二区| 亚洲国产成人porn| 亚洲成人中文在线| 偷偷要91色婷婷| 日本免费在线视频不卡一不卡二 | 日韩一级二级三级精品视频| 欧美亚洲综合网| 欧美日韩一区二区三区高清| 91福利在线播放| 日韩女同互慰一区二区| 精品免费国产一区二区三区四区| 精品日韩99亚洲| 国产日韩v精品一区二区| 中文字幕一区二区三区四区不卡 | 极品少妇xxxx偷拍精品少妇| 韩国精品在线观看| 成人性生交大片免费看中文网站| 国产成人在线免费观看| 精品国产免费久久| 中文乱码免费一区二区| 玉足女爽爽91| 久久99久久99精品免视看婷婷 | 一区二区三区免费| 丝袜a∨在线一区二区三区不卡| 麻豆国产精品777777在线| 久久精品国产亚洲5555| 99久久精品久久久久久清纯| 在线国产电影不卡| 精品国产成人在线影院| 国产精品视频麻豆| 日韩国产精品91| 国产精品小仙女| 欧美性色aⅴ视频一区日韩精品| 欧美一区二区三区啪啪| 久久中文娱乐网| 亚洲午夜电影在线观看| 国产99精品国产| 欧美性受xxxx黑人xyx性爽| 在线不卡免费欧美| 国产精品网曝门| 理论片日本一区| 91欧美一区二区| 精品av久久707| 亚洲欧美乱综合| 国产91精品入口| 日韩欧美国产一区二区在线播放 | 欧美影院精品一区| 久久久精品免费网站| 视频一区二区三区在线| 91婷婷韩国欧美一区二区| 久久久精品日韩欧美| 琪琪久久久久日韩精品| 色综合 综合色| 国产精品久久久久久久久免费桃花 | 久久精品视频在线看| 午夜免费久久看| 91网页版在线| 亚洲欧美偷拍另类a∨色屁股| 国产麻豆9l精品三级站| 欧美性videosxxxxx| 亚洲免费观看视频| 精品国产一区二区三区忘忧草| 国产iv一区二区三区| 国产一区二区三区国产| 日本精品免费观看高清观看| 国产精品私房写真福利视频| 国产一区91精品张津瑜| 日韩精品一区在线| 蜜桃一区二区三区在线观看| 在线观看91av| 日日摸夜夜添夜夜添国产精品| 欧美日韩在线电影| 亚洲欧洲日产国码二区| 99这里都是精品| 一区二区三区四区亚洲| 色综合av在线| 亚洲二区在线视频| 欧美日韩在线观看一区二区 | 日韩 欧美一区二区三区| jizzjizzjizz欧美| 亚洲欧洲成人av每日更新| av一区二区三区黑人| 亚洲精品va在线观看| 91精品1区2区| 亚洲成a人片在线不卡一二三区| 欧美日本在线播放| 免费人成网站在线观看欧美高清| 精品国产亚洲一区二区三区在线观看| 美女诱惑一区二区| 国产日韩欧美亚洲| 色婷婷久久一区二区三区麻豆| 亚洲国产成人tv| 91精品国产福利| 成人网在线播放| 亚洲一区二区三区国产| 欧美日本乱大交xxxxx| 国产美女主播视频一区| 国产精品初高中害羞小美女文| 欧美在线一区二区三区| 精品在线亚洲视频| 综合久久久久久久| 91精品国产日韩91久久久久久| 国产在线国偷精品免费看| 国产精品九色蝌蚪自拍| 欧美丰满嫩嫩电影| 国产91富婆露脸刺激对白| 午夜伦欧美伦电影理论片| 亚洲精品一区二区精华| 欧美亚洲一区二区在线观看| 激情六月婷婷久久| 亚洲色图欧美在线| www国产亚洲精品久久麻豆| 91久久精品一区二区二区| 久久99久久久欧美国产| 一区二区三区精密机械公司| 精品欧美一区二区三区精品久久 | 黄一区二区三区| 亚洲摸摸操操av| 欧美videossexotv100| 在线观看亚洲精品视频| 国产成人精品一区二| 偷拍与自拍一区| 伊人开心综合网| 久久久久久麻豆| 91精品国产综合久久精品app| 99精品久久只有精品| 激情久久五月天| 久久国产生活片100| 亚洲福利一二三区| 日韩理论在线观看| 国产精品天干天干在观线| 欧美一区二区三级| 欧美精品一二三| 91啪九色porn原创视频在线观看| 久国产精品韩国三级视频| 午夜视黄欧洲亚洲| 国产欧美精品在线观看| 精品日韩av一区二区| 欧美一区二区三区四区在线观看| 欧美性大战xxxxx久久久| 国产乱对白刺激视频不卡| 日韩综合在线视频| 亚洲综合在线观看视频| 亚洲欧美另类图片小说| 亚洲男同性恋视频| 亚洲欧洲精品一区二区精品久久久| 日韩美女视频一区二区在线观看| 在线视频欧美区| 欧美午夜不卡视频| 成a人片国产精品| 懂色av中文一区二区三区 | 亚洲国产视频直播| 亚洲制服丝袜在线| 亚洲国产日韩一区二区| 亚洲大尺度视频在线观看| 亚洲黄色性网站| 午夜久久电影网| 青草国产精品久久久久久| 麻豆精品国产91久久久久久| 蜜桃精品视频在线| 国产一二精品视频| 99久久精品国产精品久久| 91在线国内视频| 欧美日韩在线播放三区| 欧美一区二区三区思思人 | 成人精品国产一区二区4080| 国产成人aaaa| 色综合咪咪久久| 欧美理论片在线| 日韩视频一区在线观看| 中文字幕精品在线不卡| 国产精品网站一区| 亚洲国产人成综合网站| 麻豆精品精品国产自在97香蕉| 久久成人久久爱| 91在线porny国产在线看| 欧美情侣在线播放| 久久精品一区四区| 亚洲男人都懂的| 久久精品国产成人一区二区三区 | 亚洲精品欧美二区三区中文字幕| 亚洲在线免费播放| 国内精品伊人久久久久av影院| 国产盗摄一区二区三区| 色老汉av一区二区三区| 精品卡一卡二卡三卡四在线| 国产精品久久久久一区二区三区| 中文字幕一区二区三区不卡| 丝袜国产日韩另类美女| 99久久er热在这里只有精品66| 欧美一卡在线观看| 一区二区三区 在线观看视频| 紧缚奴在线一区二区三区| 欧美亚洲综合另类|