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

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

?? watchdog.c

?? lm3s6916上keil編譯的"hello world"程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
//*****************************************************************************
//
// watchdog.c - Driver for the Watchdog Timer Module.
//
// Copyright (c) 2005-2007 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 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 1234-conf of the Stellaris Peripheral 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.
//
//*****************************************************************************
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);
}

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
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;
}

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
void
WatchdogResetEnable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

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

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
void
WatchdogResetDisable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

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

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
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;
}

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
void
WatchdogUnlock(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

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

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
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);
}

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
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;
}

//*****************************************************************************
//
//! 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.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国内二区三区| 一本色道亚洲精品aⅴ| 99在线精品观看| 欧美视频一区二区三区在线观看 | 欧美日韩另类国产亚洲欧美一级| 99国产精品久久久久| 欧美影视一区二区三区| 欧美r级电影在线观看| 国产精品免费av| 日韩av高清在线观看| 国产老肥熟一区二区三区| fc2成人免费人成在线观看播放| 欧美网站一区二区| 日本一区二区三区dvd视频在线 | www.亚洲在线| 欧美成人精品高清在线播放| 国产精品一线二线三线| 99国产精品一区| 91国内精品野花午夜精品| 日韩欧美在线123| 国产精品三级视频| 日韩黄色一级片| av亚洲精华国产精华精华 | 中文字幕一区二区三区乱码在线 | 国产精品久久久久久久久晋中 | 国内精品在线播放| 制服丝袜中文字幕一区| 亚洲精品欧美二区三区中文字幕| 精品亚洲国产成人av制服丝袜| 欧美日韩精品免费| 日日骚欧美日韩| 678五月天丁香亚洲综合网| 亚洲最新视频在线播放| 欧美亚洲综合色| 亚洲综合在线观看视频| 91福利精品视频| 午夜日韩在线电影| 日韩欧美第一区| 久久99精品国产.久久久久| 欧美一区二区视频在线观看| 麻豆高清免费国产一区| 久久精品夜色噜噜亚洲a∨| 精品亚洲aⅴ乱码一区二区三区| 2021中文字幕一区亚洲| 国产69精品久久久久毛片| 亚洲丝袜另类动漫二区| 欧美日本乱大交xxxxx| 国产米奇在线777精品观看| 国产精品久久久久久久岛一牛影视| 93久久精品日日躁夜夜躁欧美| 亚洲乱码中文字幕综合| 欧美大片一区二区三区| 国产一区二区电影| 亚洲成人高清在线| 国产女同性恋一区二区| 欧美中文字幕久久| 国产成+人+日韩+欧美+亚洲| 日本中文一区二区三区| 最新中文字幕一区二区三区| 精品国产一区二区精华| 在线视频你懂得一区| 国产一区啦啦啦在线观看| 洋洋av久久久久久久一区| 欧美一区二区成人| 欧美精品乱人伦久久久久久| 成人av电影观看| 成人精品视频.| 91丝袜美腿高跟国产极品老师| 日韩av电影免费观看高清完整版 | 日本亚洲欧美天堂免费| 亚洲色图清纯唯美| 国产精品人妖ts系列视频| 久久久精品日韩欧美| 日韩女同互慰一区二区| 欧美日韩中文国产| 欧美性色综合网| 91美女片黄在线观看91美女| 91丨国产丨九色丨pron| 不卡一卡二卡三乱码免费网站| 国产精品一区二区三区网站| 国产精品系列在线观看| 高清国产一区二区三区| 国产成人精品免费| 97久久精品人人爽人人爽蜜臀| 99re热视频精品| 欧美日韩中文字幕一区| 正在播放一区二区| 亚洲国产精品精华液2区45| 精品国产sm最大网站| 欧美日韩免费在线视频| 欧美精品一二三区| 久久久久久麻豆| 国产精品免费视频观看| 亚洲精品你懂的| 视频一区在线播放| 成人免费视频播放| 欧美四级电影网| 国产欧美日韩激情| 丝袜美腿亚洲综合| 成人午夜碰碰视频| 欧美一区二区美女| 亚洲精品第1页| 高清不卡一区二区| 日韩视频免费观看高清完整版| 国产亚洲综合av| 青青国产91久久久久久| 91免费国产视频网站| 久久只精品国产| 日韩av网站在线观看| 欧洲精品在线观看| 国产精品天美传媒沈樵| 国产尤物一区二区| 欧美一区二区日韩| 性欧美疯狂xxxxbbbb| 欧美亚洲自拍偷拍| 日韩一区精品视频| 色婷婷综合五月| 亚洲欧美中日韩| www.日韩av| 精品午夜久久福利影院| 欧美日韩在线不卡| 亚洲欧美另类小说| 国产一区二区免费看| 欧美日本一区二区在线观看| 伊人一区二区三区| 色婷婷av一区二区三区大白胸| 国产日产欧美精品一区二区三区| 国产精品中文有码| 国产欧美日韩另类视频免费观看| 成人免费av网站| 亚洲丝袜自拍清纯另类| 欧美日韩一区二区三区视频| 亚洲国产精品久久一线不卡| 伦理电影国产精品| 日韩欧美中文字幕公布| 久久国内精品自在自线400部| 在线播放欧美女士性生活| 日韩精品成人一区二区三区| 欧美一区二区三区小说| 国产成人精品午夜视频免费| 1024国产精品| 日韩午夜三级在线| 99精品视频在线观看| 天天影视色香欲综合网老头| 国产日韩欧美精品综合| 欧美日韩一区二区三区免费看 | 国模冰冰炮一区二区| 亚洲精品亚洲人成人网在线播放| 91精品在线一区二区| 国产美女精品一区二区三区| 亚洲欧美日韩综合aⅴ视频| 欧美成人一区二区三区在线观看| av在线播放成人| 国产福利91精品一区| 亚洲成人自拍网| 一区二区三区精品视频| 国产精品丝袜久久久久久app| 欧美日韩高清一区| 99久久精品免费看国产免费软件| 久久99国产精品久久99| 亚洲国产aⅴ天堂久久| 亚洲婷婷在线视频| 国产精品美女久久久久久久网站| 精品国产欧美一区二区| 欧美性感一类影片在线播放| 91热门视频在线观看| av在线免费不卡| av亚洲精华国产精华精华| 精品一区二区三区欧美| 九色|91porny| 黄一区二区三区| 成人国产视频在线观看| 成人h精品动漫一区二区三区| 国产99久久久久| 成人18视频在线播放| 91麻豆精品视频| 欧美日韩不卡一区| 日韩免费高清av| 日本一区二区综合亚洲| 中文字幕中文在线不卡住| 亚洲人成人一区二区在线观看 | 欧美三级一区二区| 欧美人狂配大交3d怪物一区 | 免费观看一级欧美片| 国产麻豆精品视频| 99国产麻豆精品| 亚洲精品在线免费观看视频| 亚洲精品一区二区精华| 亚洲欧洲制服丝袜| 成人性生交大片免费看中文| 欧洲亚洲精品在线| 色琪琪一区二区三区亚洲区| 国产一区在线视频| 色综合av在线| 久久精品亚洲乱码伦伦中文| 亚洲成a人片综合在线| 国产成人免费视频精品含羞草妖精| 色悠久久久久综合欧美99| 久久久久97国产精华液好用吗| 一二三区精品视频|