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

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

?? watchdog.c

?? 飛利浦LM3S系列ARM的庫文件,在進行arm開發(fā)時所必須的庫文件,直接加到工程中,一般不必修改.
?? 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 687 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.
//
//*****************************************************************************
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.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区国产麻豆| 老汉av免费一区二区三区| 本田岬高潮一区二区三区| 国产亚洲污的网站| 成人听书哪个软件好| 国产欧美日本一区视频| 91免费视频大全| 亚洲超碰精品一区二区| 日韩欧美久久一区| 国产精品18久久久久久久久 | 舔着乳尖日韩一区| 欧美日韩一区 二区 三区 久久精品| 亚洲一区二区三区自拍| 日韩一级免费一区| 成人妖精视频yjsp地址| 亚洲男人电影天堂| 欧美精品少妇一区二区三区| 美女视频黄免费的久久 | 在线播放/欧美激情| 久久精品国产亚洲高清剧情介绍 | 国产精品久久国产精麻豆99网站| 一本到不卡精品视频在线观看| 亚洲va欧美va人人爽午夜| 精品电影一区二区| 一本一道综合狠狠老| 久久www免费人成看片高清| 久久九九99视频| 欧美在线免费观看视频| 精品一二三四区| 国产精品久久久久久久久快鸭| 色av成人天堂桃色av| 久久电影国产免费久久电影| 18成人在线观看| 91精品国产麻豆| av爱爱亚洲一区| 国内精品久久久久影院色| 亚洲狠狠丁香婷婷综合久久久| 日韩精品资源二区在线| 色婷婷精品久久二区二区蜜臂av | 国产精品 欧美精品| 亚洲一级电影视频| 国产日产亚洲精品系列| 在线播放一区二区三区| 99久久精品免费| 久久国产精品72免费观看| 亚洲一区在线观看免费| 国产精品久久久久三级| 日韩精品一区二区三区swag | 色欧美片视频在线观看| 国内精品伊人久久久久av一坑| 亚洲福利视频导航| 综合久久久久久久| 国产亚洲成av人在线观看导航| 欧美高清www午色夜在线视频| 成人av在线播放网站| 另类综合日韩欧美亚洲| 天天操天天色综合| 亚洲欧美日韩在线| 国产精品水嫩水嫩| 久久中文字幕电影| 日韩一区二区三区三四区视频在线观看 | av在线这里只有精品| 狠狠色丁香久久婷婷综合_中| 日韩激情视频在线观看| 日韩理论片一区二区| 国产精品青草久久| 国产欧美日韩不卡| 国产日韩av一区| 久久久精品免费观看| 欧美精品一区二区三区视频| 欧美电影免费观看高清完整版| 91精品婷婷国产综合久久 | 日韩综合小视频| 午夜欧美电影在线观看| 亚洲成av人片在线观看| 亚洲香肠在线观看| 亚洲黄色小视频| 一区二区三区精品在线| 亚洲无线码一区二区三区| 一区2区3区在线看| 亚洲妇熟xx妇色黄| 亚洲成人精品一区| 丝袜美腿亚洲色图| 日本一道高清亚洲日美韩| 视频一区二区欧美| 青青草原综合久久大伊人精品优势 | 日韩理论片一区二区| 亚洲另类一区二区| 欧美一级xxx| 欧美精品久久99久久在免费线| 91丨porny丨蝌蚪视频| av不卡在线播放| 色诱亚洲精品久久久久久| 在线免费观看日本一区| 欧美日本国产视频| 欧美一区二区性放荡片| 日韩欧美黄色影院| 欧美经典三级视频一区二区三区| 国产精品看片你懂得| 夜夜夜精品看看| 日本欧美一区二区三区乱码| 国产精品一区二区黑丝| 91一区二区在线| 精品视频资源站| 日韩欧美一区二区久久婷婷| 久久免费的精品国产v∧| 国产女人aaa级久久久级| 亚洲情趣在线观看| 视频一区视频二区中文字幕| 国内精品国产成人国产三级粉色 | 国产亚洲人成网站| 亚洲高清免费观看高清完整版在线观看 | 精品无人区卡一卡二卡三乱码免费卡| 久久99精品久久久久久动态图 | 精品国产三级a在线观看| 久久精品一级爱片| 亚洲自拍另类综合| 精东粉嫩av免费一区二区三区| 国产精品1区2区3区在线观看| 91首页免费视频| 日韩精品一区二区三区四区视频| 国产精品国产三级国产aⅴ原创 | 国产成人8x视频一区二区| 在线国产亚洲欧美| 国产亚洲成aⅴ人片在线观看| 亚洲午夜免费福利视频| 国产999精品久久久久久绿帽| 欧美性受xxxx| 国产精品久久影院| 美腿丝袜亚洲色图| 综合久久久久综合| 精品影院一区二区久久久| 国产高清亚洲一区| 欧美三级视频在线播放| 国产偷国产偷精品高清尤物| 亚洲高清视频的网址| 懂色av一区二区三区免费观看 | 欧美国产日韩a欧美在线观看| 亚洲a一区二区| 99精品欧美一区二区蜜桃免费| 精品国产一区二区三区久久久蜜月 | 久久九九全国免费| 青青草国产成人av片免费| 色婷婷精品久久二区二区蜜臂av| 久久嫩草精品久久久精品一| 日韩精彩视频在线观看| 欧美在线你懂得| 亚洲视频小说图片| 成人av资源网站| 国产人妖乱国产精品人妖| 久久精品国产99国产精品| 欧美日韩一区二区三区在线看| 最新国产精品久久精品| 国产精品99久久久久久久女警 | 欧美xxxxx牲另类人与| 亚洲男人都懂的| 不卡的电影网站| 国产日韩欧美在线一区| 精品一区二区在线看| 日韩精品中午字幕| 日韩中文字幕麻豆| 欧美蜜桃一区二区三区| 亚洲国产一区二区三区| 欧美无砖砖区免费| 亚洲va国产va欧美va观看| 欧美日韩国产色站一区二区三区| 亚洲精品五月天| 在线观看视频一区| 亚洲a一区二区| 欧美精品日韩精品| 五月天激情小说综合| 欧美精品亚洲二区| 裸体一区二区三区| 精品成人免费观看| 国产成人免费xxxxxxxx| 国产欧美日韩另类一区| av福利精品导航| 亚洲欧美色一区| 欧美日韩免费高清一区色橹橹| 亚洲一线二线三线久久久| 在线91免费看| 亚洲电影在线播放| 欧美日韩在线播| 蜜臀av一区二区在线免费观看| 欧美xxxxx裸体时装秀| 国产成人精品亚洲777人妖| 国产精品丝袜黑色高跟| 欧洲一区二区三区免费视频| 天堂一区二区在线免费观看| 精品国产伦一区二区三区免费| 狠狠色丁香久久婷婷综合_中| 国产精品系列在线| 在线免费观看日韩欧美| 久久精品国产**网站演员| 欧美激情一区在线| 欧美伊人久久大香线蕉综合69| 麻豆精品在线视频| 国产精品电影院| 51精品国自产在线| 国产福利一区二区三区视频在线|