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

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

?? watchdog.c

?? lm3s6916上keil編譯的"hello world"程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
//!
//! \sa WatchdogReloadSet()
//!
//! \return None.
//
//*****************************************************************************
unsigned long
WatchdogReloadGet(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Get the load register.
    //
    return(HWREG(ulBase + WDT_O_LOAD));
}

//*****************************************************************************
//
//! Gets the current watchdog timer value.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! This function reads the current value of the watchdog timer.
//!
//! \return Returns the current value of the watchdog timer.
//
//*****************************************************************************
unsigned long
WatchdogValueGet(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Get the current watchdog timer register value.
    //
    return(HWREG(ulBase + WDT_O_VALUE));
}

//*****************************************************************************
//
//! Registers an interrupt handler for watchdog timer interrupt.
//!
//! \param ulBase is the base address of the watchdog timer module.
//! \param pfnHandler is a pointer to the function to be called when the
//! watchdog timer interrupt occurs.
//!
//! This function does the actual registering of the interrupt handler.  This
//! will enable the global interrupt in the interrupt controller; the watchdog
//! timer interrupt must be enabled via WatchdogEnable(). It is the interrupt
//! handler's responsibility to clear the interrupt source via
//! WatchdogIntClear().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
//! \return None.
//
//*****************************************************************************
void
WatchdogIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Register the interrupt handler.
    //
    IntRegister(INT_WATCHDOG, pfnHandler);

    //
    // Enable the watchdog timer interrupt.
    //
    IntEnable(INT_WATCHDOG);
}

//*****************************************************************************
//
//! Unregisters an interrupt handler for the watchdog timer interrupt.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! This function does the actual unregistering of the interrupt handler.  This
//! function will clear the handler to be called when a watchdog timer
//! interrupt occurs.  This will also mask off the interrupt in the interrupt
//! controller so that the interrupt handler no longer is called.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
//! \return None.
//
//*****************************************************************************
void
WatchdogIntUnregister(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Disable the interrupt.
    //
    IntDisable(INT_WATCHDOG);

    //
    // Unregister the interrupt handler.
    //
    IntUnregister(INT_WATCHDOG);
}

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

    //
    // Enable the watchdog interrupt.
    //
    HWREG(ulBase + WDT_O_CTL) |= WDT_CTL_INTEN;
}

//*****************************************************************************
//
//! Gets the current watchdog timer interrupt status.
//!
//! \param ulBase is the base address of the watchdog timer module.
//! \param bMasked is \b false if the raw interrupt status is required and
//! \b true if the masked interrupt status is required.
//!
//! This returns the interrupt status for the watchdog timer module.  Either
//! the raw interrupt status or the status of interrupt that is allowed to
//! reflect to the processor can be returned.
//!
//! \return The current interrupt status, where a 1 indicates that the watchdog
//! interrupt is active, and a 0 indicates that it is not active.
//
//*****************************************************************************
unsigned long
WatchdogIntStatus(unsigned long ulBase, tBoolean bMasked)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Return either the interrupt status or the raw interrupt status as
    // requested.
    //
    if(bMasked)
    {
        return(HWREG(ulBase + WDT_O_MIS));
    }
    else
    {
        return(HWREG(ulBase + WDT_O_RIS));
    }
}

//*****************************************************************************
//
//! Clears the watchdog timer interrupt.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! The watchdog timer interrupt source is cleared, so that it no longer
//! asserts.
//!
//! \return None.
//
//*****************************************************************************
void
WatchdogIntClear(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Clear the interrupt source.
    //
    HWREG(ulBase + WDT_O_ICR) = WDT_INT_TIMEOUT;
}

//*****************************************************************************
//
//! Enables stalling of the watchdog timer during debug events.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! This function allows the watchdog timer to stop counting when the processor
//! is stopped by the debugger.  By doing so, the watchdog is prevented from
//! expiring (typically almost immediately from a human time perspective) and
//! resetting the system (if reset is enabled).  The watchdog will instead
//! expired after the appropriate number of processor cycles have been executed
//! while debugging (or at the appropriate time after the processor has been
//! restarted).
//!
//! \return None.
//
//*****************************************************************************
void
WatchdogStallEnable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Enable timer stalling.
    //
    HWREG(ulBase + WDT_O_TEST) |= WDT_TEST_STALL;
}

//*****************************************************************************
//
//! Disables stalling of the watchdog timer during debug events.
//!
//! \param ulBase is the base address of the watchdog timer module.
//!
//! This function disables the debug mode stall of the watchdog timer.  By
//! doing so, the watchdog timer continues to count regardless of the processor
//! debug state.
//!
//! \return None.
//
//*****************************************************************************
void
WatchdogStallDisable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == WATCHDOG_BASE);

    //
    // Disable timer stalling.
    //
    HWREG(ulBase + WDT_O_TEST) &= ~(WDT_TEST_STALL);
}

//*****************************************************************************
//
// Close the Doxygen group.
//! @}
//
//*****************************************************************************

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人免费在线| 91精品国产综合久久久久| 人人爽香蕉精品| 亚洲精品视频免费看| 欧美国产日韩亚洲一区| 日韩欧美国产一区二区三区| 色88888久久久久久影院按摩| av福利精品导航| 国产精品久久久久一区二区三区共| 国产日韩精品久久久| 亚洲午夜av在线| 成人美女视频在线看| 欧美日韩国产综合草草| 国产日韩精品一区二区三区| 伊人夜夜躁av伊人久久| 国产精品123区| 欧美一区二区不卡视频| 国产精品人妖ts系列视频| 免费人成在线不卡| 99re成人精品视频| 日本一区二区不卡视频| 美女在线视频一区| 91精品国产综合久久香蕉的特点| 久久精品亚洲精品国产欧美| 一区二区三区蜜桃| 91首页免费视频| 一区二区三区日韩精品| 白白色 亚洲乱淫| 欧美高清一级片在线观看| 久久精品99国产精品日本| 日韩免费视频线观看| 51精品秘密在线观看| 免费av网站大全久久| 国产色爱av资源综合区| 99精品视频一区二区| 婷婷国产v国产偷v亚洲高清| 欧美刺激脚交jootjob| 色综合久久综合网欧美综合网| 亚洲国产另类av| 国产精品久99| 精品成人一区二区三区| 成人激情小说网站| 亚洲福利电影网| 日韩欧美黄色影院| 福利一区二区在线观看| 亚洲天堂2016| 日韩精品一区国产麻豆| 国产乱子伦视频一区二区三区| 一色桃子久久精品亚洲| 欧美久久久久久蜜桃| 国产成人日日夜夜| 一区二区三区在线影院| www日韩大片| 在线免费观看日本一区| 精品一区二区三区蜜桃| 一区二区三区日韩| 国产日韩精品一区| 欧美一区二区三区思思人| 国产激情一区二区三区四区 | 亚洲成av人片一区二区梦乃| 欧美tickling挠脚心丨vk| 色综合久久中文字幕| 国产精品亚洲专一区二区三区| 亚洲综合精品久久| 最新热久久免费视频| 久久久久国产精品麻豆ai换脸| 欧美另类高清zo欧美| 色哟哟一区二区在线观看| 成人网页在线观看| 国产一区二区三区四区五区入口| 无码av免费一区二区三区试看| 国产精品久久久久久久久果冻传媒 | 欧美国产禁国产网站cc| 成人av电影免费观看| av一区二区久久| av在线不卡电影| 色婷婷综合激情| 色综合久久久久| 日本精品一级二级| 色综合视频在线观看| 一本大道综合伊人精品热热| 99久久久久久99| 欧美在线免费播放| 欧美老女人在线| 久久久另类综合| 自拍偷拍国产精品| 日韩精品欧美成人高清一区二区| 无码av中文一区二区三区桃花岛| 蜜臀av性久久久久蜜臀aⅴ流畅 | 亚洲午夜视频在线| 亚洲高清视频的网址| 日产国产欧美视频一区精品| 精品一区二区三区免费视频| 成人av动漫网站| 91精品国产色综合久久不卡蜜臀| 日韩一区二区免费在线电影| 日韩精品一区二区在线观看| 26uuu成人网一区二区三区| xnxx国产精品| 夜夜嗨av一区二区三区中文字幕| 日韩综合小视频| 成人av网站在线观看免费| 在线电影国产精品| 中文字幕 久热精品 视频在线 | 久久精品免费在线观看| 亚洲综合偷拍欧美一区色| 青青青伊人色综合久久| 不卡的av电影在线观看| 精品国产三级a在线观看| 亚洲一区视频在线| 色哟哟在线观看一区二区三区| 精品日韩一区二区三区| 亚洲福利视频一区二区| 色久优优欧美色久优优| 国产精品久久夜| 成人av在线资源网站| 国产偷国产偷亚洲高清人白洁| 日本午夜一本久久久综合| 欧美日韩中文精品| 亚洲人xxxx| 成人深夜视频在线观看| 日韩欧美区一区二| 亚洲国产精品一区二区尤物区| 福利电影一区二区| 欧美国产精品中文字幕| 国产黄人亚洲片| 欧美无砖砖区免费| 亚洲日穴在线视频| 91在线国产福利| 日韩一区在线播放| 国产成人激情av| 久久久亚洲高清| 国产精品一区二区三区99| 日韩精品中午字幕| 伦理电影国产精品| 日韩一区二区视频| 裸体一区二区三区| 91精品国产丝袜白色高跟鞋| 免费在线视频一区| 精品福利在线导航| 国产成人午夜精品影院观看视频| 日韩情涩欧美日韩视频| 久久99蜜桃精品| 国产精品久久久久久户外露出| 99视频在线观看一区三区| 亚洲最色的网站| 欧美一区二区三区免费大片 | 欧美三日本三级三级在线播放| 亚洲欧美日韩小说| 久久综合五月天婷婷伊人| zzijzzij亚洲日本少妇熟睡| 亚洲美女少妇撒尿| 亚洲精品一区二区三区在线观看 | 日韩成人一级大片| 精品日韩av一区二区| 日韩女优电影在线观看| 91国产精品成人| 99久久国产综合精品色伊| 91视频国产资源| 欧美中文字幕不卡| 欧美精品v国产精品v日韩精品| 国产精品一级黄| 国产精品夜夜嗨| 国产在线视频一区二区| 日本一不卡视频| 午夜私人影院久久久久| 亚洲精品大片www| 国产精品国产三级国产专播品爱网| 欧美sm极限捆绑bd| 精品捆绑美女sm三区| 亚洲精品一区在线观看| 国产亚洲一区字幕| 亚洲国产精品国自产拍av| 久久久久久久久久久久电影| 久久精品一区四区| 中文字幕精品三区| 国产日韩欧美精品电影三级在线| 国产视频一区二区在线| 国产精品福利影院| 亚洲欧美怡红院| 亚洲小少妇裸体bbw| 一区二区三区欧美亚洲| 日韩精品欧美精品| 九九视频精品免费| 97aⅴ精品视频一二三区| 日本韩国欧美一区二区三区| 精品88久久久久88久久久| 欧美大片在线观看一区| 日本一区二区免费在线| 一级中文字幕一区二区| 国模大尺度一区二区三区| 91色九色蝌蚪| 久久午夜羞羞影院免费观看| 国产人伦精品一区二区| 午夜久久久影院| 国产成人欧美日韩在线电影| 日韩一区二区在线看| 亚洲免费成人av| 91麻豆福利精品推荐| 中文字幕欧美激情|