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

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

?? pwm.c

?? 飛利浦LM3S系列ARM的庫文件,在進行arm開發時所必須的庫文件,直接加到工程中,一般不必修改.
?? C
?? 第 1 頁 / 共 3 頁
字號:
void
PWMGenIntUnregister(unsigned long ulBase, unsigned long ulGen)
{
    unsigned long ulInt;

    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);
    ASSERT((ulGen == PWM_GEN_0) || (ulGen == PWM_GEN_1) ||
           (ulGen == PWM_GEN_2));

    //
    // Get the interrupt number associated with the specified generator.
    //
    ulInt = INT_PWM0 + (ulGen >> 6) - 1;

    //
    // Disable the PWMx interrupt.
    //
    IntDisable(ulInt);

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

//*****************************************************************************
//
//! Registers an interrupt.handler for a fault condition detected in a PWM
//! module.
//!
//! \param ulBase is the base address of the PWM module.
//! \param pfIntHandler is a pointer to the function to be called when the PWM
//! fault interrupt occurs.
//!
//! This function will ensure that the interrupt.handler specified by
//! \e pfIntHandler is called when a fault interrupt is detected for the
//! selected PWM module.  This function will also enable the PWM fault
//! interrupt in the NVIC; the PWM fault interrupt must also be enabled at the
//! module level using PWMIntEnable().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
//! \return None.
//
//*****************************************************************************
void
PWMFaultIntRegister(unsigned long ulBase, void (*pfIntHandler)(void))
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);

    //
    // Register the interrupt.handler, returning an error if one occurs.
    //
    IntRegister(INT_PWM_FAULT, pfIntHandler);

    //
    // Enable the PWM fault interrupt.
    //
    IntEnable(INT_PWM_FAULT);
}

//*****************************************************************************
//
//! Removes the PWM fault condition interrupt.handler.
//!
//! \param ulBase is the base address of the PWM module.
//!
//! This function will remove the interrupt.handler for a PWM fault interrupt
//! from the selected PWM module.  This function will also disable the PWM
//! fault interrupt in the NVIC; the PWM fault interrupt must also be disabled
//! at the module level using PWMIntDisable().
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
//! \return None.
//
//*****************************************************************************
void
PWMFaultIntUnregister(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);

    //
    // Disable the PWM fault interrupt.
    //
    IntDisable(INT_PWM_FAULT);

    //
    // Unregister the interrupt.handler, returning an error if one occurs.
    //
    IntUnregister(INT_PWM_FAULT);
}

//*****************************************************************************
//
//! Enables interrupts and triggers for the specified PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator to have interrupts and triggers enabled.
//! Must be one of \b PWM_GEN_0, \b PWM_GEN_1, or \b PWM_GEN_2.
//! \param ulIntTrig specifies the interrupts and triggers to be enabled.
//!
//! Unmasks the specified interrupt(s) and trigger(s) by setting the
//! specified bits of the interrupt/trigger enable register for the specified
//! PWM generator.  The defined values for the bits are as follows:
//!
//! - PWM_INT_CNT_ZERO
//! - PWM_INT_CNT_LOAD
//! - PWM_INT_CMP_AU
//! - PWM_INT_CMP_AD
//! - PWM_INT_CMP_BU
//! - PWM_INT_CMP_BD
//! - PWM_TR_CNT_ZERO
//! - PWM_TR_CNT_LOAD
//! - PWM_TR_CMP_AU
//! - PWM_TR_CMP_AD
//! - PWM_TR_CMP_BU
//! - PWM_TR_CMP_BD
//!
//! \return None.
//
//*****************************************************************************
void
PWMGenIntTrigEnable(unsigned long ulBase, unsigned long ulGen,
                    unsigned long ulIntTrig)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);
    ASSERT((ulGen == PWM_GEN_0) || (ulGen == PWM_GEN_1) ||
           (ulGen == PWM_GEN_2));

    //
    // Enable the specified interrupts/triggers.
    //
    HWREG(PWM_GEN_BADDR(ulBase, ulGen) + PWM_O_X_INTEN) |= ulIntTrig;
}

//*****************************************************************************
//
//! Disables interrupts for the specified PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator to have interrupts and triggers disabled.
//! Must be one of \b PWM_GEN_0, \b PWM_GEN_1, or \b PWM_GEN_2.
//! \param ulIntTrig specifies the interrupts and triggers to be disabled.
//!
//! Masks the specified interrupt(s) and trigger(s) by clearing the
//! specified bits of the interrupt/trigger enable register for the specified
//! PWM generator.  The defined values for the bits are as follows:
//!
//! - PWM_INT_CNT_ZERO
//! - PWM_INT_CNT_LOAD
//! - PWM_INT_CMP_AU
//! - PWM_INT_CMP_AD
//! - PWM_INT_CMP_BU
//! - PWM_INT_CMP_BD
//! - PWM_TR_CNT_ZERO
//! - PWM_TR_CNT_LOAD
//! - PWM_TR_CMP_AU
//! - PWM_TR_CMP_AD
//! - PWM_TR_CMP_BU
//! - PWM_TR_CMP_BD
//!
//! \return None.
//
//*****************************************************************************
void
PWMGenIntTrigDisable(unsigned long ulBase, unsigned long ulGen,
                     unsigned long ulIntTrig)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);
    ASSERT((ulGen == PWM_GEN_0) || (ulGen == PWM_GEN_1) ||
           (ulGen == PWM_GEN_2));

    //
    // Disable the specified interrupts/triggers.
    //
    HWREG(PWM_GEN_BADDR(ulBase, ulGen) + PWM_O_X_INTEN) &= ~(ulIntTrig);
}

//*****************************************************************************
//
//! Gets interrupt status for the specified PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator to query.  Must be one of \b PWM_GEN_0,
//! \b PWM_GEN_1, or \b PWM_GEN_2.
//! \param bMasked specifies whether masked or raw interrupt status is
//! returned.
//!
//! If \e bMasked is set as \b true, then the masked interrupt status is
//! returned; otherwise, the raw interrupt status will be returned.
//!
//! \return Returns the contents of the interrupt status register, or the
//! contents of the raw interrupt status register, for the specified
//! PWM generator.
//
//*****************************************************************************
unsigned long
PWMGenIntStatus(unsigned long ulBase, unsigned long ulGen, tBoolean bMasked)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);
    ASSERT((ulGen == PWM_GEN_0) || (ulGen == PWM_GEN_1) ||
           (ulGen == PWM_GEN_2));

    //
    // Compute the generator's base address.
    //
    ulGen = PWM_GEN_BADDR(ulBase, ulGen);

    //
    // Read and return the specified generator's raw or enabled interrupt
    // status.
    //
    if(bMasked == true)
    {
        return(HWREG(ulGen + PWM_O_X_ISC));
    }
    else
    {
        return(HWREG(ulGen + PWM_O_X_RIS));
    }
}

//*****************************************************************************
//
//! Clears the specified interrupt(s) for the specified PWM generator block.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator to query.  Must be one of \b PWM_GEN_0,
//! \b PWM_GEN_1, or \b PWM_GEN_2.
//! \param ulInts specifies the interrupts to be cleared.
//!
//! Clears the specified interrupt(s) by writing a 1 to the specified bits
//! of the interrupt status register for the specified PWM generator.  The
//! defined values for the bits are as follows:
//!
//! - PWM_INT_CNT_ZERO
//! - PWM_INT_CNT_LOAD
//! - PWM_INT_CMP_AU
//! - PWM_INT_CMP_AD
//! - PWM_INT_CMP_BU
//! - PWM_INT_CMP_BD
//!
//! \return None.
//
//*****************************************************************************
void
PWMGenIntClear(unsigned long ulBase, unsigned long ulGen, unsigned long ulInts)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);
    ASSERT((ulGen == PWM_GEN_0) || (ulGen == PWM_GEN_1) ||
           (ulGen == PWM_GEN_2));

    //
    // Clear the requested interrupts by writing ones to the specified bit
    // of the module's interrupt enable register.
    //
    HWREG(PWM_GEN_BADDR(ulBase, ulGen) + PWM_O_X_ISC) = ulInts;
}

//*****************************************************************************
//
//! Enables generator and fault interrupts for a PWM module.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGenFault contains the interrupts to be enabled.  Must be a logical
//! OR of any of \b PWM_INT_GEN_0, \b PWM_INT_GEN_1, \b PWM_INT_GEN_2, or
//! \b PWM_INT_FAULT.
//!
//! Unmasks the specified interrupt(s) by setting the specified bits of
//! the interrupt enable register for the selected PWM module.
//!
//! \return None.
//
//*****************************************************************************
void
PWMIntEnable(unsigned long ulBase, unsigned long ulGenFault)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);

    //
    // Read the module's interrupt enable register, and enable interrupts
    // for the specified PWM generators.
    //
    HWREG(ulBase + PWM_O_INTEN) |= ulGenFault;
}

//*****************************************************************************
//
//! Disables generator and fault interrupts for a PWM module.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGenFault contains the interrupts to be disabled.  Must be a
//! logical OR of any of \b PWM_INT_GEN_0, \b PWM_INT_GEN_1, \b PWM_INT_GEN_2,
//! or \b PWM_INT_FAULT.
//!
//! Masks the specified interrupt(s) by clearing the specified bits of
//! the interrupt enable register for the selected PWM module.
//!
//! \return None.
//
//*****************************************************************************
void
PWMIntDisable(unsigned long ulBase, unsigned long ulGenFault)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);

    //
    // Read the module's interrupt enable register, and disable interrupts
    // for the specified PWM generators.
    //
    HWREG(ulBase + PWM_O_INTEN) &= ~(ulGenFault);
}

//*****************************************************************************
//
//! Clears the fault interrupt for a PWM module.
//!
//! \param ulBase is the base address of the PWM module.
//!
//! Clears the fault interrupt by writing to the appropriate bit of the
//! interrupt status register for the selected PWM module.
//!
//! \return None.
//
//*****************************************************************************
void
PWMFaultIntClear(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);

    //
    // Write the only writeable bit in the module's interrupt register.
    //
    HWREG(ulBase + PWM_O_ISC) = PWM_INT_INTFAULT;
}

//*****************************************************************************
//
//! Gets the interrupt status for a PWM module.
//!
//! \param ulBase is the base address of the PWM module.
//! \param bMasked specifies whether masked or raw interrupt status is
//! returned.
//!
//! If \e bMasked is set as \b true, then the masked interrupt status is
//! returned; otherwise, the raw interrupt status will be returned.
//!
//! \return The current interrupt status, enumerated as a bit field of
//! \b PWM_INT_GEN_0, \b PWM_INT_GEN_1, \b PWM_INT_GEN_2, and \b PWM_INT_FAULT.
//!
//*****************************************************************************
unsigned long
PWMIntStatus(unsigned long ulBase, tBoolean bMasked)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);

    //
    // Read and return either the module's raw or enabled interrupt status.
    //
    if(bMasked == true)
    {
        return(HWREG(ulBase + PWM_O_ISC));
    }
    else
    {
        return(HWREG(ulBase + PWM_O_RIS));
    }
}

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
狠狠久久亚洲欧美| 亚洲www啪成人一区二区麻豆| 一区二区欧美国产| 国产剧情一区二区| 精品av久久707| 麻豆国产精品一区二区三区 | 色综合久久综合| 日韩一区日韩二区| 不卡大黄网站免费看| 欧美国产日韩在线观看| 国产裸体歌舞团一区二区| 精品不卡在线视频| 丁香啪啪综合成人亚洲小说| 中文久久乱码一区二区| 91在线观看一区二区| 亚洲欧美在线视频| 91玉足脚交白嫩脚丫在线播放| 国产精品卡一卡二卡三| 99精品欧美一区二区三区小说| 亚洲少妇最新在线视频| 91蝌蚪porny成人天涯| 一区二区成人在线观看| 国产精品欧美精品| 亚洲国产色一区| 首页欧美精品中文字幕| 理论电影国产精品| 日韩精品电影在线观看| 国产美女精品在线| 色综合视频在线观看| 在线免费观看不卡av| 亚洲一区二区视频| 国产精品一区免费在线观看| 亚洲精选一二三| 日韩午夜激情视频| 成人av网址在线观看| 爽爽淫人综合网网站| 国产亚洲短视频| 欧美日韩一级黄| 国产河南妇女毛片精品久久久| 伊人开心综合网| 久久久国际精品| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲欧美在线观看| 日韩精品一区在线| 色综合视频在线观看| 国产九色精品成人porny| 亚洲一区二区三区影院| 国产精品亲子伦对白| 精品国产在天天线2019| 欧美精品久久久久久久久老牛影院| 国产成人免费视频精品含羞草妖精| 午夜精品成人在线| 一区二区三区在线观看国产| 国产色产综合色产在线视频| 欧美一级高清片| 欧美日本一道本在线视频| 9色porny自拍视频一区二区| 韩国女主播成人在线| 丝袜美腿亚洲综合| 一区二区欧美国产| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 精品国产免费人成在线观看| 欧美一区二区美女| 欧美日韩国产美女| 欧美在线观看一区二区| 色综合视频一区二区三区高清| 成人ar影院免费观看视频| 国产麻豆91精品| 国产一区二区视频在线| 狠狠色丁香久久婷婷综合_中| 免费在线看成人av| 热久久国产精品| 免费成人av在线| 久久精品久久精品| 日本欧美久久久久免费播放网| 亚洲一区在线视频观看| 亚洲一线二线三线视频| 亚洲成在线观看| 首页国产丝袜综合| 蜜臀av性久久久久蜜臀aⅴ四虎 | 亚洲色图一区二区三区| 国产精品久久久久四虎| 国产精品成人免费精品自在线观看| 精品1区2区在线观看| 久久久美女毛片| 国产三级欧美三级日产三级99 | 日韩黄色在线观看| 午夜伦欧美伦电影理论片| 日韩精品每日更新| 爽爽淫人综合网网站| 美女www一区二区| 精品一区二区三区av| 高清shemale亚洲人妖| www.成人在线| 欧美视频在线一区二区三区| 欧美精品在线一区二区三区| 日韩免费视频线观看| 国产调教视频一区| 亚洲美女视频在线| 三级在线观看一区二区| 国内精品第一页| 91同城在线观看| 欧美一区午夜视频在线观看| 精品国产一区二区亚洲人成毛片| 久久久久国产精品麻豆ai换脸 | aaa亚洲精品| 欧美精品一级二级| 欧美精品一区二区三区在线播放| 中文子幕无线码一区tr| 一级女性全黄久久生活片免费| 日韩黄色免费电影| 国产99久久久精品| 欧美日韩国产中文| 久久久久久久综合狠狠综合| 亚洲精品久久久蜜桃| 老司机精品视频导航| 99国产精品视频免费观看| 91精品在线麻豆| 中文字幕欧美一| 久久国产福利国产秒拍| 日本丶国产丶欧美色综合| 欧美电视剧在线观看完整版| 亚洲欧美在线视频| 黄页视频在线91| 欧美日韩一卡二卡三卡| 中文一区二区完整视频在线观看| 性感美女极品91精品| 成人国产精品免费| 日韩免费在线观看| 亚洲一二三四区不卡| 国产成人免费av在线| 欧美一区二区高清| 亚洲在线观看免费视频| 成人成人成人在线视频| 亚洲精品一区二区精华| 日韩激情一区二区| 欧美在线短视频| 国产精品久久久久毛片软件| 韩国女主播成人在线| 91精品国产91综合久久蜜臀| 夜色激情一区二区| 成人av资源在线| 久久久综合视频| 日韩一区精品字幕| 欧日韩精品视频| 最新成人av在线| 高清成人免费视频| 欧美精品一区二区三区久久久| 午夜私人影院久久久久| 91国产免费观看| 亚洲视频资源在线| 成年人网站91| 欧美国产成人精品| 国产乱子轮精品视频| 欧美tk—视频vk| 免费成人小视频| 日韩一级免费一区| 日本sm残虐另类| 欧美一区二区三区四区五区 | 国产精品第四页| 丰满少妇在线播放bd日韩电影| 日韩欧美一级片| 麻豆91小视频| 日韩一区二区三区四区五区六区| 午夜成人在线视频| 欧美日韩免费一区二区三区视频| 一区二区三区中文字幕| 一本到不卡免费一区二区| 国产欧美日韩精品在线| 福利一区二区在线| 国产精品欧美久久久久无广告 | 五月天欧美精品| 欧美人与禽zozo性伦| 亚洲高清视频的网址| 欧美精品高清视频| 美女视频黄久久| 欧美精品一区二区三区在线播放| 经典一区二区三区| 久久精品免视看| 成人av在线播放网站| 亚洲男人天堂av| 欧美日韩激情在线| 麻豆一区二区99久久久久| 久久久www免费人成精品| 成人成人成人在线视频| 一二三区精品福利视频| 91精品综合久久久久久| 国产一区在线看| 中文字幕一区日韩精品欧美| 欧美综合在线视频| 美女视频黄频大全不卡视频在线播放| 精品国免费一区二区三区| 粉嫩av亚洲一区二区图片| 亚洲欧美日韩久久精品| 91麻豆精品国产91久久久更新时间| 久久99国产精品免费网站| 日本一区二区三级电影在线观看| 91影视在线播放| 男女性色大片免费观看一区二区 | 色偷偷88欧美精品久久久|