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

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

?? watchdog.c

?? KEIL驅動 各方面各 你的看法女士的煩惱 方看到你
?? C
?? 第 1 頁 / 共 2 頁
字號:
//*****************************************************************************
//
// watchdog.c - Driver for the Watchdog Timer Module.
//
// Copyright (c) 2005-2008 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.  You may not combine
// this software with "viral" open-source software in order to form a larger
// program.  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 3223 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 \e ulLoadVal parameter 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.
//!
//! \sa WatchdogReloadSet()
//!
//! \return None.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av一区二区三区在线| 精品在线免费视频| 91麻豆免费看| 一区二区三区成人在线视频| 91免费小视频| 天天av天天翘天天综合网色鬼国产 | 色婷婷综合久久久久中文一区二区| 国产精品美女久久久久久久久| 成人免费福利片| 免费人成黄页网站在线一区二区 | 国产精品影视在线| 国产精品激情偷乱一区二区∴| 91丝袜高跟美女视频| 亚洲国产aⅴ天堂久久| 日韩一区二区视频| 高清成人在线观看| 亚洲综合一二区| 欧美一区二区三区四区久久| 狠狠色2019综合网| 亚洲色图在线播放| 欧美二区三区的天堂| 国产呦精品一区二区三区网站| 国产精品久久午夜| 欧美日韩成人在线| 高清av一区二区| 五月婷婷综合网| 久久久不卡网国产精品二区| 色综合天天狠狠| 黑人精品欧美一区二区蜜桃| 亚洲欧美日韩一区二区三区在线观看| 欧美日韩中文字幕一区二区| 国产一区二区三区蝌蚪| 亚洲精选视频免费看| 精品国产乱码久久久久久图片| 99久久精品免费看| 久久国产综合精品| 玉足女爽爽91| 久久精品亚洲麻豆av一区二区| 欧美体内she精高潮| 国产成人在线影院| 日韩电影在线观看网站| 日韩毛片精品高清免费| 精品理论电影在线观看| 欧美午夜免费电影| 成人精品鲁一区一区二区| 免费人成网站在线观看欧美高清| 亚洲欧美偷拍三级| 国产三级精品三级在线专区| 制服丝袜国产精品| 色综合久久66| 国产成人免费在线| 久久99国产精品免费网站| 一区二区三区在线播| 国产农村妇女精品| 亚洲精品一线二线三线| 欧美日韩卡一卡二| 91久久人澡人人添人人爽欧美| 国产盗摄视频一区二区三区| 精品影视av免费| 日韩不卡一二三区| 午夜久久久久久| 一区二区三区精品久久久| 国产精品灌醉下药二区| 久久久久久久久99精品| 日韩欧美你懂的| 91精品国产综合久久香蕉的特点 | 丁香网亚洲国际| 韩国一区二区三区| 久久国产日韩欧美精品| 美腿丝袜亚洲综合| 免费欧美在线视频| 久久电影国产免费久久电影| 热久久久久久久| 老司机精品视频一区二区三区| 亚洲成人777| 午夜精品一区二区三区电影天堂 | 久久国产精品免费| 日韩中文字幕亚洲一区二区va在线 | 国内精品在线播放| 精品一二三四区| 激情五月播播久久久精品| 精品一区二区三区香蕉蜜桃 | 99久久精品免费看国产 | 日本不卡一区二区三区高清视频| 视频一区二区中文字幕| 日韩精品每日更新| 狂野欧美性猛交blacked| 狠狠色丁香久久婷婷综| 国产成人综合亚洲91猫咪| 成人av资源下载| 91在线看国产| 欧美色爱综合网| 欧美日韩中文字幕一区二区| 日韩女优av电影| 国产亚洲一本大道中文在线| 国产精品毛片a∨一区二区三区| 国产精品美女久久久久久久久| 最新国产成人在线观看| 亚洲一区二区三区四区中文字幕| 午夜激情久久久| 精品一区精品二区高清| 成人国产亚洲欧美成人综合网| 色偷偷久久一区二区三区| 欧美日韩中字一区| 久久精品亚洲精品国产欧美kt∨ | 麻豆精品视频在线观看视频| 精品一区二区三区香蕉蜜桃 | 丰满亚洲少妇av| 91蜜桃传媒精品久久久一区二区| 欧美日韩一区高清| 久久久精品天堂| 一区二区在线看| 精品一区二区免费看| 色悠悠亚洲一区二区| 日韩欧美美女一区二区三区| 中文字幕在线观看一区| 日韩激情一二三区| 成人的网站免费观看| 91精品国产综合久久久蜜臀粉嫩| 欧美激情一二三区| 天天做天天摸天天爽国产一区| 国产福利一区二区三区视频在线 | 高清视频一区二区| 欧美性高清videossexo| 久久天天做天天爱综合色| 亚洲女性喷水在线观看一区| 蜜桃视频一区二区| 91女人视频在线观看| 亚洲精品一区二区三区99| 亚洲一区免费观看| 成人福利视频在线看| 欧美一区二区精美| 国产精品久久久久aaaa| 麻豆高清免费国产一区| 欧美视频三区在线播放| 中文字幕欧美日韩一区| 美国毛片一区二区| 色婷婷久久久亚洲一区二区三区| 欧美一级欧美三级在线观看| 最新国产成人在线观看| 国产东北露脸精品视频| 欧美成人伊人久久综合网| 亚洲一区在线视频观看| 99久久久免费精品国产一区二区 | 亚洲老司机在线| 粉嫩av一区二区三区| 日韩午夜在线观看视频| 午夜视频一区在线观看| 一本到不卡免费一区二区| 国产无一区二区| 国产一区二区三区久久久| 69久久99精品久久久久婷婷| 亚洲精品一二三| 99v久久综合狠狠综合久久| 久久―日本道色综合久久| 免费在线看成人av| 91麻豆精品国产91久久久久| 亚洲一区电影777| 色婷婷综合久久久久中文一区二区| 中文字幕欧美一| 99久久伊人久久99| 一区在线观看视频| 99精品欧美一区二区蜜桃免费| 国产精品久久久一区麻豆最新章节| 国内精品国产三级国产a久久| 日韩你懂的在线播放| 紧缚捆绑精品一区二区| 精品久久久久香蕉网| 99久久99久久精品免费看蜜桃| 国产欧美日韩在线视频| 国产成人免费网站| 国产精品理伦片| 91麻豆国产福利精品| 亚洲免费在线观看视频| 91麻豆国产精品久久| 亚洲一二三四在线| 欧美精品在线观看一区二区| 亚洲1区2区3区4区| 日韩一级视频免费观看在线| 麻豆91精品视频| 欧美精品一区二区三区在线播放| 韩国精品主播一区二区在线观看 | 欧美体内she精视频| 日韩国产一二三区| 日韩欧美国产1| 国产精品自拍在线| 中文字幕一区二区三中文字幕| 色天天综合久久久久综合片| 亚洲成人一区在线| 日韩精品一区二区三区四区| 国产综合色精品一区二区三区| 国产日韩欧美精品电影三级在线 | 欧美日韩一区二区三区四区五区| 亚洲大片在线观看| 欧美sm美女调教| 成人午夜视频在线| 亚洲高清免费观看高清完整版在线观看| 欧美日韩视频在线观看一区二区三区| 秋霞影院一区二区| 国产精品午夜久久|