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

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

?? 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.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久91精品国产一区二区精品| 国产精品中文字幕一区二区三区| 在线亚洲一区二区| 日韩一二三区不卡| 国产揄拍国内精品对白| 国产欧美一区二区精品婷婷| 国产一区二区h| 日韩不卡在线观看日韩不卡视频| 美洲天堂一区二卡三卡四卡视频| 日韩一区二区影院| 国产高清不卡一区| 国产精品久久久久久久久久免费看| 99精品黄色片免费大全| 亚洲一区在线看| 日韩一区二区三区在线| 国产99久久久久久免费看农村| 国产精品乱人伦| 欧美色视频在线观看| 日本不卡高清视频| 中文字幕高清一区| 欧美三级电影一区| 久久91精品久久久久久秒播| 国产精品色在线| 欧美日韩久久一区| 成人晚上爱看视频| 亚洲国产一区二区视频| 亚洲精品在线三区| 91激情五月电影| 毛片av一区二区| 国产精品久久久久久久久快鸭| 欧美日韩国产另类不卡| 成人美女在线视频| 麻豆精品视频在线观看免费| 国产精品国产三级国产aⅴ入口| 欧美日韩第一区日日骚| 丁香网亚洲国际| 蜜臀久久99精品久久久久久9| 1024亚洲合集| 亚洲精品在线观| 欧美日韩国产一二三| 成人午夜激情在线| 久久精工是国产品牌吗| 一区二区三区日韩在线观看| 久久久精品tv| 6080国产精品一区二区| 91女人视频在线观看| 国模少妇一区二区三区| 婷婷夜色潮精品综合在线| 国产精品色一区二区三区| 精品成人a区在线观看| 欧美二区三区的天堂| 色先锋aa成人| 国产裸体歌舞团一区二区| 久久精品男人天堂av| 国产精品久久久久久一区二区三区 | 日韩精品一区国产麻豆| 色欧美88888久久久久久影院| 国产麻豆欧美日韩一区| 久久99久久99| 亚洲成精国产精品女| 亚洲日穴在线视频| 国产精品动漫网站| 久久美女艺术照精彩视频福利播放| 欧美一级日韩免费不卡| 欧美挠脚心视频网站| 欧美性欧美巨大黑白大战| 一本大道综合伊人精品热热| www.成人网.com| 成人开心网精品视频| 成人午夜看片网址| jlzzjlzz亚洲女人18| 99国产精品一区| 色综合天天做天天爱| 成人理论电影网| 91色婷婷久久久久合中文| 日韩一卡二卡三卡四卡| 99在线视频精品| kk眼镜猥琐国模调教系列一区二区 | 亚洲成人免费在线| 亚洲国产成人高清精品| 亚洲成人动漫在线免费观看| 香港成人在线视频| 人妖欧美一区二区| 久久国产精品99精品国产| 精品一区二区国语对白| 国产综合一区二区| 国产传媒久久文化传媒| 成人一级片网址| www.亚洲人| 色吧成人激情小说| 欧美丝袜自拍制服另类| 91精品国产91热久久久做人人| 日韩精品一区二区三区四区视频 | 丝袜美腿成人在线| 蜜桃一区二区三区在线| 人妖欧美一区二区| 国产高清在线观看免费不卡| 成人免费不卡视频| 欧美亚洲高清一区| 欧美精品日韩综合在线| 欧美成人精精品一区二区频| 欧美国产精品专区| 亚洲一区av在线| 狠狠色丁香久久婷婷综| 99热这里都是精品| 欧美日韩成人在线一区| 精品欧美黑人一区二区三区| 国产精品每日更新在线播放网址| 亚洲欧美经典视频| 麻豆精品视频在线观看| 成人av先锋影音| 欧美日韩国产经典色站一区二区三区| 日韩三级电影网址| 国产精品久久看| 日本不卡一二三| 99久久婷婷国产综合精品| 国产一区二区三区蝌蚪| 国产成人h网站| 日韩黄色片在线观看| 国产成人精品三级麻豆| 欧美视频中文字幕| 久久免费电影网| 亚洲综合无码一区二区| 国产精品影音先锋| 欧美撒尿777hd撒尿| 国产片一区二区三区| 亚洲成人动漫在线观看| av午夜一区麻豆| 欧美成人一区二区| 亚洲制服丝袜av| 国产又黄又大久久| 91精品欧美综合在线观看最新| 国产精品久久久久久亚洲伦| 麻豆91免费观看| 在线亚洲一区观看| 国产精品日日摸夜夜摸av| 麻豆成人综合网| 欧美性做爰猛烈叫床潮| ●精品国产综合乱码久久久久 | 555夜色666亚洲国产免| 一区免费观看视频| 丰满少妇久久久久久久| 日韩一区二区三区在线观看| 亚洲成人精品一区| 一本大道久久a久久综合| 欧美激情在线一区二区| 久久不见久久见中文字幕免费| 91国产丝袜在线播放| 中文字幕日韩av资源站| 国产成人啪午夜精品网站男同| 日韩一区二区免费在线观看| 亚洲va韩国va欧美va精品| 在线精品视频免费播放| 欧美国产丝袜视频| 成人午夜在线视频| 久久九九久久九九| 国产一区二区福利视频| 精品国产一区二区三区不卡| 蜜桃视频一区二区| 欧美mv日韩mv亚洲| 蜜桃av一区二区三区电影| 欧美一区二区三区四区高清| 五月天激情综合网| 欧美一区二区三区在线看| 日日骚欧美日韩| 欧美一区在线视频| 免费欧美高清视频| 91精品视频网| 久久99热这里只有精品| 欧美电视剧免费观看| 久久99久久99小草精品免视看| 日韩欧美精品三级| 日本系列欧美系列| 日韩欧美成人一区| 国精产品一区一区三区mba视频| 久久先锋影音av鲁色资源网| 国产麻豆成人精品| 国产精品久久久久影院亚瑟| 99综合影院在线| 亚洲一区精品在线| 在线观看91av| 国产黄人亚洲片| 亚洲三级在线免费观看| 欧美三级电影在线观看| 美国十次了思思久久精品导航| 9i看片成人免费高清| 日本午夜一本久久久综合| 欧美日韩综合一区| 亚洲国产精品久久艾草纯爱 | 欧美色图一区二区三区| 亚洲成av人片在线| 精品日韩欧美在线| 不卡一区二区在线| 亚洲18影院在线观看| 精品少妇一区二区三区免费观看| 国产精品一区在线观看你懂的| 国产精品美女久久久久久久网站| 91精品福利视频| 久草中文综合在线| 亚洲欧美在线观看|