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

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

?? pm.h

?? freertosV4.40 是一種small的嵌入式系統(tǒng)。利于嵌入式開好者入門學習嵌入式操作系統(tǒng)。通過對于源碼的學習可以很好的掌握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);


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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品在线观看| 99精品久久99久久久久| 国产成人在线视频网址| 日本道色综合久久| 久久嫩草精品久久久精品| 亚洲影视资源网| 国产成人精品在线看| 日韩天堂在线观看| 伊人夜夜躁av伊人久久| 成人午夜av电影| 久久香蕉国产线看观看99| bt7086福利一区国产| 欧美一卡2卡三卡4卡5免费| 亚洲最大成人综合| 91在线视频播放| 国产精品久久久久一区| 国模少妇一区二区三区| 日韩午夜激情视频| 日本成人在线网站| 在线成人av影院| 午夜欧美一区二区三区在线播放| 99re热这里只有精品免费视频| 国产欧美一二三区| 国产精品一区二区久久不卡 | 久久久久久97三级| 亚洲bt欧美bt精品| 欧美日韩免费高清一区色橹橹 | 韩国精品免费视频| 欧美妇女性影城| 丝袜诱惑亚洲看片| 欧美日韩国产精品成人| 日日噜噜夜夜狠狠视频欧美人| 欧美午夜精品理论片a级按摩| 亚洲三级在线免费| 欧美视频在线一区| 亚瑟在线精品视频| 欧美一二三区精品| 国产美女av一区二区三区| 国产无遮挡一区二区三区毛片日本| 国产在线日韩欧美| 国产欧美日韩久久| 91性感美女视频| 亚洲大片精品永久免费| 欧美一区二区三区婷婷月色| 麻豆极品一区二区三区| 久久久久久久久久久电影| 成人综合婷婷国产精品久久蜜臀| 国产精品美女久久久久av爽李琼| 91丝袜美女网| 男男gaygay亚洲| 日本一区二区三区电影| 91精品91久久久中77777| 同产精品九九九| 久久婷婷成人综合色| 成人免费看视频| 亚洲精品一二三| 日韩美女一区二区三区四区| 成人免费视频免费观看| 亚洲国产另类av| 国产成人精品免费网站| av高清不卡在线| 一卡二卡三卡日韩欧美| 欧美影视一区在线| 久久成人免费网| 亚洲国产精品v| 在线观看视频一区二区欧美日韩| 久久精品国产亚洲高清剧情介绍| 中文字幕高清不卡| 欧美久久一区二区| 大尺度一区二区| 日韩激情视频网站| 1区2区3区精品视频| 日韩你懂的在线播放| 国产精品一二三四五| 欧美亚洲国产怡红院影院| 久久在线免费观看| 亚洲一二三专区| 欧美日韩综合不卡| 亚洲免费伊人电影| 99久久伊人精品| 久久久亚洲精品一区二区三区| 日韩在线播放一区二区| 欧美在线观看视频在线| 亚洲欧洲av一区二区三区久久| 视频一区欧美日韩| 欧美高清dvd| 偷拍一区二区三区四区| 在线播放国产精品二区一二区四区 | 成人激情午夜影院| 亚洲日穴在线视频| 国产视频视频一区| 婷婷综合另类小说色区| 国产精品原创巨作av| 午夜日韩在线观看| 精品一区在线看| 99久久99久久综合| 蜜臀av性久久久久蜜臀aⅴ流畅 | av资源网一区| 免费在线观看日韩欧美| 一区二区三区四区在线免费观看 | 欧美中文字幕一区二区三区亚洲| 中文字幕欧美日本乱码一线二线| 美女视频黄免费的久久| 国产欧美日本一区视频| 91麻豆文化传媒在线观看| 亚洲电影视频在线| 精品av综合导航| 丰满白嫩尤物一区二区| 亚洲bt欧美bt精品777| 欧美日韩aaaaa| av一区二区三区四区| 亚洲高清免费一级二级三级| 国产资源在线一区| 国产亚洲午夜高清国产拍精品| 成人亚洲一区二区一| 免费观看日韩av| 久久国产免费看| 极品美女销魂一区二区三区| 玖玖九九国产精品| 精品一区二区三区av| 国产一区在线观看麻豆| 韩国视频一区二区| 国产iv一区二区三区| 国产成人av资源| www.综合网.com| 欧美主播一区二区三区美女| 欧美三日本三级三级在线播放| 欧美午夜精品一区| 日韩一区二区中文字幕| 精品国精品国产| 欧美极品美女视频| 亚洲卡通动漫在线| 日韩精品1区2区3区| 韩国成人在线视频| 粉嫩一区二区三区性色av| 成人福利视频网站| 91成人免费在线视频| 欧美精三区欧美精三区| 欧美zozo另类异族| 中文字幕在线一区免费| 亚洲综合成人在线| 久久99精品国产.久久久久| 福利电影一区二区| 欧洲一区在线电影| 日韩一本二本av| 国产精品久久久久久久久免费樱桃 | 一区二区三区在线观看欧美| 亚洲免费在线观看| 美女一区二区在线观看| 丁香一区二区三区| 欧美日韩一区成人| 久久久99久久| 亚洲午夜羞羞片| 国产大陆亚洲精品国产| 欧美优质美女网站| www激情久久| 亚洲国产综合人成综合网站| 精久久久久久久久久久| 色老综合老女人久久久| 精品88久久久久88久久久| 亚洲综合在线第一页| 国产成人免费在线视频| 这里只有精品视频在线观看| 国产欧美一区二区精品忘忧草| 香蕉影视欧美成人| av网站一区二区三区| 欧美成人在线直播| 亚洲国产视频a| 91在线你懂得| 久久精品人人做人人综合 | 夜夜精品浪潮av一区二区三区| 激情文学综合网| 欧美人与性动xxxx| 亚洲精品国产一区二区精华液 | 久久99精品国产麻豆婷婷洗澡| 91啪在线观看| 国产欧美一区二区三区网站| 日本不卡不码高清免费观看| 在线一区二区视频| 亚洲欧美另类久久久精品2019| 国产激情一区二区三区四区| 精品久久久久久久人人人人传媒| 亚洲成a人片综合在线| 91黄色免费网站| 中文字幕在线播放不卡一区| 国产精品99久久久久久久女警 | 一区二区三区欧美在线观看| 成人av在线电影| 国产蜜臀av在线一区二区三区| 老司机免费视频一区二区三区| 欧美老肥妇做.爰bbww视频| 一区二区三区鲁丝不卡| 99r国产精品| 国产精品久久久一本精品| 国产在线看一区| 国产清纯白嫩初高生在线观看91 | 亚洲男人的天堂在线aⅴ视频| 成人性色生活片| 国产精品你懂的在线欣赏| 成人一级片在线观看|