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

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

?? watchdog.c

?? FreeRTOS V4.2.1,增加了AVR32 UC3 和 LPC2368 的支持
?? C
?? 第 1 頁 / 共 2 頁
字號:
//*****************************************************************************
//
// watchdog.c - Driver for the Watchdog Timer Module.
//
// Copyright (c) 2005,2006 Luminary Micro, Inc.  All rights reserved.
//
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's Stellaris Family of microcontroller products.
//
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws.  All rights are reserved.  Any use in violation
// of the foregoing restrictions may subject the user to criminal sanctions
// under applicable laws, as well as to civil liability for the breach of the
// terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 991 of the Stellaris Driver Library.
//
//*****************************************************************************

//*****************************************************************************
//
//! \addtogroup watchdog_api
//! @{
//
//*****************************************************************************

#include "../hw_ints.h"
#include "../hw_memmap.h"
#include "../hw_types.h"
#include "../hw_watchdog.h"
#include "debug.h"
#include "interrupt.h"
#include "watchdog.h"

//*****************************************************************************
//
//! Determines if the watchdog timer is enabled.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! This will check to see if the watchdog timer is enabled.
//!
//! \return Returns \b true if the watchdog timer is enabled, and \b false
//! if it is not.
//
//*****************************************************************************
#if defined(GROUP_running) || defined(BUILD_ALL) || defined(DOXYGEN)
tBoolean
WatchdogRunning(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // See if the watchdog timer module is enabled, and return.
    //
    return(HWREG(ulBase + WDT_O_CTL) & WDT_CTL_INTEN);
}
#endif

//*****************************************************************************
//
//! Enables the watchdog timer.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! This will enable the watchdog timer counter and interrupt.
//!
//! \note This function will have no effect if the watchdog timer has
//! been locked.
//!
//! \sa WatchdogLock(), WatchdogUnlock()
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_enable) || defined(BUILD_ALL) || defined(DOXYGEN)
void
WatchdogEnable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Enable the watchdog timer module.
    //
    HWREG(ulBase + WDT_O_CTL) |= WDT_CTL_INTEN;
}
#endif

//*****************************************************************************
//
//! Enables the watchdog timer reset.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! Enables the capability of the watchdog timer to issue a reset to the
//! processor upon a second timeout condition.
//!
//! \note This function will have no effect if the watchdog timer has
//! been locked.
//!
//! \sa WatchdogLock(), WatchdogUnlock()
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_resetenable) || defined(BUILD_ALL) || defined(DOXYGEN)
void
WatchdogResetEnable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Enable the watchdog reset.
    //
    HWREG(ulBase + WDT_O_CTL) |= WDT_CTL_RESEN;
}
#endif

//*****************************************************************************
//
//! Disables the watchdog timer reset.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! Disables the capability of the watchdog timer to issue a reset to the
//! processor upon a second timeout condition.
//!
//! \note This function will have no effect if the watchdog timer has
//! been locked.
//!
//! \sa WatchdogLock(), WatchdogUnlock()
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_resetdisable) || defined(BUILD_ALL) || defined(DOXYGEN)
void
WatchdogResetDisable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Disable the watchdog reset.
    //
    HWREG(ulBase + WDT_O_CTL) &= ~(WDT_CTL_RESEN);
}
#endif

//*****************************************************************************
//
//! Enables the watchdog timer lock mechanism.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! Locks out write access to the watchdog timer configuration registers.
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_lock) || defined(BUILD_ALL) || defined(DOXYGEN)
void
WatchdogLock(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Lock out watchdog register writes.  Writing anything to the WDT_O_LOCK
    // register causes the lock to go into effect.
    //
    HWREG(ulBase + WDT_O_LOCK) = WDT_LOCK_LOCKED;
}
#endif

//*****************************************************************************
//
//! Disables the watchdog timer lock mechanism.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! Enables write access to the watchdog timer configuration registers.
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_unlock) || defined(BUILD_ALL) || defined(DOXYGEN)
void
WatchdogUnlock(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Unlock watchdog register writes.
    //
    HWREG(ulBase + WDT_O_LOCK) = WDT_LOCK_UNLOCK;
}
#endif

//*****************************************************************************
//
//! Gets the state of the watchdog timer lock mechanism.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! Returns the lock state of the watchdog timer registers.
//!
//! \return Returns \b true if the watchdog timer registers are locked, and
//! \b false if they are not locked.
//
//*****************************************************************************
#if defined(GROUP_lockstate) || defined(BUILD_ALL) || defined(DOXYGEN)
tBoolean
WatchdogLockState(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Get the lock state.
    //
    return((HWREG(ulBase + WDT_O_LOCK) == WDT_LOCK_LOCKED) ? true : false);
}
#endif

//*****************************************************************************
//
//! Sets the watchdog timer reload value.
//!
//! \param ulBase is the base address of the watchdog timer module.
//! \param ulLoadVal is the load value for the watchdog timer.
//!
//! This function sets the value to load into the watchdog timer when the count
//! reaches zero for the first time; if the watchdog timer is running when this
//! function is called, then the value will be immediately loaded into the
//! watchdog timer counter. If the parameter \e ulLoadVal is 0, then an
//! interrupt is immediately generated.
//!
//! \note This function will have no effect if the watchdog timer has
//! been locked.
//!
//! \sa WatchdogLock(), WatchdogUnlock(), WatchdogReloadGet()
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_reloadset) || defined(BUILD_ALL) || defined(DOXYGEN)
void
WatchdogReloadSet(unsigned long ulBase, unsigned long ulLoadVal)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Set the load register.
    //
    HWREG(ulBase + WDT_O_LOAD) = ulLoadVal;
}
#endif

//*****************************************************************************
//
//! Gets the watchdog timer reload value.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! This function gets the value that is loaded into the watchdog timer when
//! the count reaches zero for the first time.
//!

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91欧美激情一区二区三区成人| 欧美午夜宅男影院| 亚洲最色的网站| 久久综合九色综合欧美就去吻| 91色综合久久久久婷婷| 国产真实乱子伦精品视频| 亚洲成人av中文| 亚洲欧美日本在线| 久久久国产精华| 日韩欧美激情四射| 欧美精品18+| 色一区在线观看| 成人免费看视频| 国产一区高清在线| 免费成人在线观看| 亚洲国产wwwccc36天堂| 亚洲丝袜美腿综合| 国产精品日韩精品欧美在线| 久久影视一区二区| 欧美一区二区三区视频在线观看| 色婷婷av一区二区| eeuss鲁片一区二区三区| 精久久久久久久久久久| 毛片av一区二区三区| 日本午夜精品视频在线观看| 亚洲a一区二区| 亚洲一区二区三区在线看| 最新国产成人在线观看| 成人欧美一区二区三区视频网页| 国产精品视频九色porn| 国产精品美女久久久久久久久久久| 久久天天做天天爱综合色| 欧美va亚洲va在线观看蝴蝶网| 日韩一区二区三区在线观看 | 国产电影精品久久禁18| 精品无人区卡一卡二卡三乱码免费卡| 日本va欧美va瓶| 免费在线观看成人| 日韩精品一区第一页| 日韩精品午夜视频| 日本一不卡视频| 蜜臀va亚洲va欧美va天堂| 天天做天天摸天天爽国产一区| 亚洲自拍偷拍欧美| 亚洲国产成人精品视频| 五月天婷婷综合| 日本vs亚洲vs韩国一区三区二区 | 亚洲高清视频中文字幕| 亚洲一二三四久久| 婷婷激情综合网| 色噜噜狠狠色综合中国| 色综合久久久久综合99| 在线免费精品视频| 日韩码欧中文字| 亚洲大片免费看| 91蜜桃传媒精品久久久一区二区| 国产欧美日韩综合| 黄网站免费久久| 欧美一区二区三区免费观看视频 | 国产日韩欧美在线一区| 日本在线不卡一区| 欧美高清视频在线高清观看mv色露露十八| 成人免费在线视频观看| 国产成人综合网站| 国产午夜精品一区二区三区视频 | 一区二区三区波多野结衣在线观看| 国产成人综合亚洲91猫咪| 精品国产一区二区三区不卡| 天堂久久久久va久久久久| 欧美亚洲国产一区二区三区va| 日韩一区欧美一区| a级精品国产片在线观看| 中文字幕第一页久久| 成人做爰69片免费看网站| 国产日韩欧美a| 成人午夜精品一区二区三区| 国产精品天干天干在线综合| 成人深夜在线观看| 国产精品久久久久久久久图文区 | 中文字幕国产一区| 成人午夜av在线| 国产精品第13页| 色av一区二区| 亚洲国产成人va在线观看天堂| 欧美日韩在线一区二区| 日韩电影在线一区二区三区| 日韩欧美在线一区二区三区| 激情综合色播五月| 久久久www免费人成精品| 国产91高潮流白浆在线麻豆| 亚洲三级电影网站| 欧美日韩你懂得| 久久99精品国产麻豆不卡| 国产视频一区在线播放| 色哟哟欧美精品| 美女视频网站黄色亚洲| 亚洲国产精品精华液2区45| 91蝌蚪国产九色| 日本女人一区二区三区| 国产亚洲欧美中文| 91精品办公室少妇高潮对白| 日韩中文字幕一区二区三区| 国产视频一区二区在线观看| 色综合天天综合网天天看片| 丝袜亚洲另类欧美| 国产三级精品视频| 欧美视频在线一区| 国产伦精一区二区三区| 亚洲综合色网站| 久久精品视频一区| 欧美伊人久久久久久久久影院| 久久99久久99小草精品免视看| 国产精品毛片无遮挡高清| 欧美电影影音先锋| 国产成人久久精品77777最新版本| 一区二区三区在线视频观看58 | 欧美性生活影院| 国产在线精品国自产拍免费| 亚洲黄色片在线观看| 国产欧美一区二区精品婷婷| 91国偷自产一区二区三区成为亚洲经典| 奇米影视7777精品一区二区| 樱花草国产18久久久久| 欧美成人伊人久久综合网| 欧洲精品一区二区| 成人天堂资源www在线| 免费一级片91| 午夜精品一区在线观看| 中文字幕一区日韩精品欧美| 欧美videossexotv100| 欧美疯狂做受xxxx富婆| 色伊人久久综合中文字幕| 成人动漫一区二区| 国产精品一二三四| 久久福利视频一区二区| 午夜精品久久久久久久| 亚洲曰韩产成在线| 亚洲欧美激情视频在线观看一区二区三区 | 亚洲欧洲精品成人久久奇米网| 91精品国产91久久综合桃花| 欧美在线视频不卡| 91丨九色porny丨蝌蚪| 成人深夜福利app| 成人性生交大合| 国产.精品.日韩.另类.中文.在线.播放 | 亚洲欧美一区二区三区国产精品| 久久精品在线观看| 国产女同互慰高潮91漫画| 欧美videos中文字幕| 精品国产乱码久久久久久蜜臀| 日韩色视频在线观看| 日韩欧美精品在线视频| 精品国产乱码久久久久久浪潮| 久久综合九色综合欧美98| 久久网这里都是精品| 日韩电影在线看| 日韩中文字幕一区二区三区| 蜜臀av性久久久久蜜臀av麻豆| 偷拍亚洲欧洲综合| 人人精品人人爱| 精品一区二区三区av| 国产精品一二三四五| 99久久精品国产一区| 日本乱人伦一区| 欧美精品三级日韩久久| 日韩欧美中文字幕公布| 国产亚洲短视频| 亚洲色图一区二区三区| 亚洲永久精品国产| 久久成人免费日本黄色| 国产.精品.日韩.另类.中文.在线.播放 | 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲精品国产无天堂网2021| 亚洲国产精品麻豆| 美女网站视频久久| 国产精品888| 欧美在线观看一区二区| 日韩精品在线看片z| 国产精品网站在线观看| 一区二区三区免费网站| 日韩av电影免费观看高清完整版 | 91精品在线一区二区| 久久亚洲二区三区| 亚洲男人的天堂在线观看| 午夜精品久久久久久| 国产福利91精品一区二区三区| 在线免费观看成人短视频| 精品少妇一区二区三区| 综合在线观看色| 久久99精品国产麻豆婷婷| 91玉足脚交白嫩脚丫在线播放| 欧美人成免费网站| 国产精品日日摸夜夜摸av| 日韩精品色哟哟| 波多野结衣的一区二区三区| 日韩欧美国产综合| 亚洲免费在线视频| 国产精品夜夜嗨| 免费看欧美美女黄的网站| 一区二区三区欧美在线观看|