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

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

?? hibernate.c

?? STM32+Grlib
?? C
?? 第 1 頁 / 共 3 頁
字號:
//! Returns a value representing the currently configured low battery detection
//! behavior.  The return value will be one of the following:
//!
//! - \b HIBERNATE_LOW_BAT_DETECT - detect a low battery condition.
//! - \b HIBERNATE_LOW_BAT_ABORT - detect a low battery condition, and abort
//! hibernation if low battery is detected.
//!
//! \return Returns a value indicating the configured low battery detection.
//
//*****************************************************************************
unsigned long
HibernateLowBatGet(void)
{
    //
    // Read the low bat bits from the control register and return those bits to
    // the caller.
    //
    return(HWREG(HIB_CTL) & HIBERNATE_LOW_BAT_ABORT);
}

//*****************************************************************************
//
//! Sets the value of the real time clock (RTC) counter.
//!
//! \param ulRTCValue is the new value for the RTC.
//!
//! Sets the value of the RTC.  The RTC will count seconds if the hardware is
//! configured correctly.  The RTC must be enabled by calling
//! HibernateRTCEnable() before calling this function.
//!
//! \return None.
//
//*****************************************************************************
void
HibernateRTCSet(unsigned long ulRTCValue)
{
    //
    // Write the new RTC value to the RTC load register.
    //
    HWREG(HIB_RTCLD) = ulRTCValue;

    //
    // Add a delay here to enforce the required delay between write accesses to
    // certain Hibernation module registers.
    //
    if(CLASS_IS_FURY)
    {
        //
        // Delay a fixed time on Fury-class devices
        //
        SysCtlDelay(g_ulWriteDelay);
    }
    else
    {
        //
        // Wait for write complete to be signaled on later devices.
        //
        HibernateWriteComplete();
    }
}

//*****************************************************************************
//
//! Gets the value of the real time clock (RTC) counter.
//!
//! Gets the value of the RTC and returns it to the caller.
//!
//! \return Returns the value of the RTC.
//
//*****************************************************************************
unsigned long
HibernateRTCGet(void)
{
    //
    // Return the value of the RTC counter register to the caller.
    //
    return(HWREG(HIB_RTCC));
}

//*****************************************************************************
//
//! Sets the value of the RTC match 0 register.
//!
//! \param ulMatch is the value for the match register.
//!
//! Sets the match 0 register for the RTC.  The Hibernation module can be
//! configured to wake from hibernation, and/or generate an interrupt when the
//! value of the RTC counter is the same as the match register.
//!
//! \return None.
//
//*****************************************************************************
void
HibernateRTCMatch0Set(unsigned long ulMatch)
{
    //
    // Write the new match value to the match register.
    //
    HWREG(HIB_RTCM0) = ulMatch;

    //
    // Add a delay here to enforce the required delay between write accesses to
    // certain Hibernation module registers.
    //
    if(CLASS_IS_FURY)
    {
        //
        // Delay a fixed time on Fury-class devices
        //
        SysCtlDelay(g_ulWriteDelay);
    }
    else
    {
        //
        // Wait for write complete to be signaled on later devices.
        //
        HibernateWriteComplete();
    }
}

//*****************************************************************************
//
//! Gets the value of the RTC match 0 register.
//!
//! Gets the value of the match 0 register for the RTC.
//!
//! \return Returns the value of the match register.
//
//*****************************************************************************
unsigned long
HibernateRTCMatch0Get(void)
{
    //
    // Return the value of the match register to the caller.
    //
    return(HWREG(HIB_RTCM0));
}

//*****************************************************************************
//
//! Sets the value of the RTC match 1 register.
//!
//! \param ulMatch is the value for the match register.
//!
//! Sets the match 1 register for the RTC.  The Hibernation module can be
//! configured to wake from hibernation, and/or generate an interrupt when the
//! value of the RTC counter is the same as the match register.
//!
//! \return None.
//
//*****************************************************************************
void
HibernateRTCMatch1Set(unsigned long ulMatch)
{
    //
    // Write the new match value to the match register.
    //
    HWREG(HIB_RTCM1) = ulMatch;

    //
    // Add a delay here to enforce the required delay between write accesses to
    // certain Hibernation module registers.
    //
    if(CLASS_IS_FURY)
    {
        //
        // Delay a fixed time on Fury-class devices
        //
        SysCtlDelay(g_ulWriteDelay);
    }
    else
    {
        //
        // Wait for write complete to be signaled on later devices.
        //
        HibernateWriteComplete();
    }
}

//*****************************************************************************
//
//! Gets the value of the RTC match 1 register.
//!
//! Gets the value of the match 1 register for the RTC.
//!
//! \return Returns the value of the match register.
//
//*****************************************************************************
unsigned long
HibernateRTCMatch1Get(void)
{
    //
    // Return the value of the match register to the caller.
    //
    return(HWREG(HIB_RTCM1));
}

//*****************************************************************************
//
//! Sets the value of the RTC predivider trim register.
//!
//! \param ulTrim is the new value for the pre-divider trim register.
//!
//! Sets the value of the pre-divider trim register.  The input time source is
//! divided by the pre-divider to achieve a one-second clock rate.  Once every
//! 64 seconds, the value of the pre-divider trim register is applied to the
//! predivider to allow fine-tuning of the RTC rate, in order to make
//! corrections to the rate.  The software application can make adjustments to
//! the predivider trim register to account for variations in the accuracy of
//! the input time source.  The nominal value is 0x7FFF, and it can be adjusted
//! up or down in order to fine-tune the RTC rate.
//!
//! \return None.
//
//*****************************************************************************
void
HibernateRTCTrimSet(unsigned long ulTrim)
{
    //
    // Check the arguments.
    //
    ASSERT(ulTrim < 0x10000);

    //
    // Write the new trim value to the trim register.
    //
    HWREG(HIB_RTCT) = ulTrim;

    //
    // Add a delay here to enforce the required delay between write accesses to
    // certain Hibernation module registers.
    //
    if(CLASS_IS_FURY)
    {
        //
        // Delay a fixed time on Fury-class devices
        //
        SysCtlDelay(g_ulWriteDelay);
    }
    else
    {
        //
        // Wait for write complete to be signaled on later devices.
        //
        HibernateWriteComplete();
    }
}

//*****************************************************************************
//
//! Gets the value of the RTC predivider trim register.
//!
//! Gets the value of the pre-divider trim register.  This function can be used
//! to get the current value of the trim register prior to making an adjustment
//! by using the HibernateRTCTrimSet() function.
//!
//! \return None.
//
//*****************************************************************************
unsigned long
HibernateRTCTrimGet(void)
{
    //
    // Return the value of the trim register to the caller.
    //
    return(HWREG(HIB_RTCT));
}

//*****************************************************************************
//
//! Stores data in the non-volatile memory of the Hibernation module.
//!
//! \param pulData points to the data that the caller wants to store in the
//! memory of the Hibernation module.
//! \param ulCount is the count of 32-bit words to store.
//!
//! Stores a set of data in the Hibernation module non-volatile memory.  This
//! memory will be preserved when the power to the processor is turned off, and
//! can be used to store application state information which will be available
//! when the processor wakes.  Up to 64 32-bit words can be stored in the
//! non-volatile memory.  The data can be restored by calling the
//! HibernateDataGet() function.
//!
//! \return None.
//
//*****************************************************************************
void
HibernateDataSet(unsigned long *pulData, unsigned long ulCount)
{
    unsigned int uIdx;

    //
    // Check the arguments.
    //
    ASSERT(ulCount <= 64);
    ASSERT(pulData != 0);

    //
    // Loop through all the words to be stored, storing one at a time.
    //
    for(uIdx = 0; uIdx < ulCount; uIdx++)
    {
        //
        // Write a word to the non-volatile storage area.
        //
        HWREG(HIB_DATA + (uIdx * 4)) = pulData[uIdx];

        //
        // Add a delay between writes to the data area.
        //
        if(CLASS_IS_FURY)
        {
            //
            // Delay a fixed time on Fury-class devices
            //
            SysCtlDelay(g_ulWriteDelay);
        }
        else
        {
            //
            // Wait for write complete to be signaled on later devices.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
岛国一区二区在线观看| 蜜桃一区二区三区在线观看| 成人午夜精品在线| 国产精品国产三级国产三级人妇| 成人一区二区三区在线观看| 国产精品第13页| 欧美性videosxxxxx| 日韩高清不卡一区二区三区| 日韩亚洲国产中文字幕欧美| 国产呦萝稀缺另类资源| 国产精品视频你懂的| 在线观看视频一区| 久久精品国产999大香线蕉| 久久久国际精品| 在线精品视频一区二区| 青娱乐精品视频| 欧美国产一区视频在线观看| 在线观看精品一区| 韩国毛片一区二区三区| 国产精品视频一二三区| 欧美日韩视频专区在线播放| 国产精品综合av一区二区国产馆| 最近日韩中文字幕| 欧美一区永久视频免费观看| 国产大片一区二区| 亚洲二区在线视频| 国产色综合一区| 欧美在线你懂得| 韩国三级电影一区二区| 伊人夜夜躁av伊人久久| 精品粉嫩超白一线天av| 在线观看视频一区| 国产成人免费在线观看| 五月天久久比比资源色| 中文字幕精品—区二区四季| 欧美人狂配大交3d怪物一区| 成人h动漫精品一区二| 午夜精品久久久久| 中文字幕欧美日韩一区| 日韩欧美一二区| 色嗨嗨av一区二区三区| 国内精品免费在线观看| 污片在线观看一区二区| 中文字幕免费一区| 精品卡一卡二卡三卡四在线| 欧美无砖专区一中文字| 99久久久精品| 国产精品一区二区在线观看不卡 | 欧美日韩精品欧美日韩精品一综合| 久久成人久久爱| 天天综合天天做天天综合| 欧美激情在线一区二区三区| 日韩三级伦理片妻子的秘密按摩| 在线观看日韩国产| 99免费精品视频| 国产一区二区三区在线观看免费| 午夜av区久久| 中文字幕欧美一| 日本一区二区三级电影在线观看 | 久久精品网站免费观看| 91麻豆精品国产91久久久久久| 91视频在线观看| 岛国精品在线观看| 国产成人日日夜夜| 国产在线播放一区三区四| 日本不卡不码高清免费观看| 亚洲第一福利视频在线| 亚洲精品高清在线观看| 中文字幕日韩精品一区| 国产女主播一区| 国产日产欧美一区二区三区| 精品国产乱码久久久久久图片 | 欧美电影免费观看高清完整版在线| 在线观看av一区| 在线观看亚洲a| 欧美天天综合网| 欧美日韩电影一区| 在线综合亚洲欧美在线视频 | 精品国产精品网麻豆系列 | 久久青草国产手机看片福利盒子| 欧美一卡二卡在线观看| 欧美一区日本一区韩国一区| 欧美日韩国产在线观看| 欧美日韩国产片| 欧美一级日韩免费不卡| 日韩视频免费观看高清完整版在线观看 | 一区二区三区精品久久久| 亚洲乱码国产乱码精品精可以看| 亚洲欧美日韩国产成人精品影院 | 一区二区三区在线免费播放| 亚洲永久精品国产| 天天影视色香欲综合网老头| 日本aⅴ精品一区二区三区| 免费观看成人av| 国产综合色在线| 99精品视频中文字幕| 欧美午夜电影网| 精品久久久久久久久久久院品网| 久久综合久久综合久久| 国产精品免费免费| 亚洲图片欧美一区| 欧美aⅴ一区二区三区视频| 久久99久久99| av电影一区二区| 欧美日韩中文字幕一区| 精品少妇一区二区三区免费观看| 国产欧美精品一区| 艳妇臀荡乳欲伦亚洲一区| 美女爽到高潮91| 成人午夜激情片| 欧美嫩在线观看| 久久亚洲二区三区| 亚洲精品免费在线观看| 强制捆绑调教一区二区| 成a人片亚洲日本久久| 欧美日韩色一区| 久久久五月婷婷| 亚洲一本大道在线| 国产精品1区2区3区在线观看| 91国偷自产一区二区三区成为亚洲经典| 4438x亚洲最大成人网| 国产网红主播福利一区二区| 亚洲图片欧美视频| 国产精品影音先锋| 欧美日韩国产系列| 中文字幕制服丝袜成人av| 日本不卡一区二区三区高清视频| av在线不卡观看免费观看| 日韩免费福利电影在线观看| 18涩涩午夜精品.www| 久久aⅴ国产欧美74aaa| 91激情五月电影| 国产精品网曝门| 黄色成人免费在线| 7777精品伊人久久久大香线蕉完整版| 国产精品久久久久影院老司 | aaa欧美色吧激情视频| 日韩精品一区二区在线| 一区二区三区在线视频播放| 国产乱一区二区| 欧美xingq一区二区| 亚洲影视在线观看| 91一区二区在线观看| 亚洲国产精华液网站w | 成人国产精品免费观看动漫| 日韩欧美中文字幕一区| 亚洲午夜免费电影| 99国产精品一区| 国产欧美一区二区三区鸳鸯浴| 琪琪一区二区三区| 制服丝袜在线91| 首页综合国产亚洲丝袜| 欧洲一区在线电影| 一区二区三区精品| 91久久精品一区二区三| 亚洲免费高清视频在线| 成人av电影免费观看| 久久九九久久九九| 国产成人综合亚洲91猫咪| 久久天堂av综合合色蜜桃网| 蜜桃视频一区二区| 4438成人网| 麻豆精品视频在线| 欧美一个色资源| 日韩成人免费电影| 91精品国产综合久久久久久| 日韩激情在线观看| 欧美一卡二卡在线观看| 久久精品国产精品青草| 精品国产自在久精品国产| 麻豆91在线播放免费| 日韩精品综合一本久道在线视频| 日韩二区三区四区| 日韩一级片在线观看| 久草这里只有精品视频| 久久精品视频一区| 成人a免费在线看| 亚洲精品v日韩精品| 欧美午夜不卡视频| 六月丁香婷婷色狠狠久久| 精品国产乱码久久久久久久久 | 色婷婷久久综合| 午夜久久电影网| 欧美大白屁股肥臀xxxxxx| 国产毛片一区二区| 亚洲视频一二三| 在线成人免费视频| 国产一区二区三区免费播放| 国产精品私人影院| 精品视频色一区| 国内精品在线播放| 日韩美女精品在线| 欧美日韩一区高清| 国产激情精品久久久第一区二区| 《视频一区视频二区| 欧美一区二区三区四区久久| 国产乱人伦偷精品视频免下载| 亚洲乱码国产乱码精品精的特点 | xnxx国产精品| 91在线看国产|