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

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

?? ssi.c

?? 飛利浦LM3S系列ARM的庫文件,在進行arm開發時所必須的庫文件,直接加到工程中,一般不必修改.
?? C
?? 第 1 頁 / 共 2 頁
字號:
//! enabled can be reflected to the processor interrupt; disabled sources
//! have no effect on the processor.  The parameter \e ulIntFlags Can be
//! any of the SSI_TXFF, SSI_RXFF, SSI_RXTO, or SSI_RXOR values.
//!
//! \return None.
//
//*****************************************************************************
void
SSIIntEnable(unsigned long ulBase, unsigned long ulIntFlags)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);

    //
    // Enable the specified interrupts.
    //
    HWREG(ulBase + SSI_O_IM) |= ulIntFlags;
}

//*****************************************************************************
//
//! Disables individual SSI interrupt sources.
//!
//! \param ulBase specifies the SSI module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be disabled.
//!
//! Disables the indicated SSI interrupt sources. The parameter
//! \e ulIntFlags Can be any of the SSI_TXFF, SSI_RXFF, SSI_RXTO,
//! or SSI_RXOR values.
//!
//! \return None.
//
//*****************************************************************************
void
SSIIntDisable(unsigned long ulBase, unsigned long ulIntFlags)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);

    //
    // Disable the specified interrupts.
    //
    HWREG(ulBase + SSI_O_IM) &= ~(ulIntFlags);
}

//*****************************************************************************
//
//! Gets the current interrupt status.
//!
//! \param ulBase specifies the SSI module base address.
//! \param bMasked is false if the raw interrupt status is required and
//! true if the masked interrupt status is required.
//!
//! This returns the interrupt status for the SSI module.
//! Either the raw interrupt status or the status of interrupts that are
//! allowed to reflect to the processor can be returned.
//!
//! \return The current interrupt status, enumerated as a bit field of
//! SSI_TXFF, SSI_RXFF, SSI_RXTO, and SSI_RXOR.
//
//*****************************************************************************
unsigned long
SSIIntStatus(unsigned long ulBase, tBoolean bMasked)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);

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

//*****************************************************************************
//
//! Clears SSI interrupt sources.
//!
//! \param ulBase specifies the SSI module base address.
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
//! The specified SSI interrupt sources are cleared, so that
//! they no longer assert.  This must be done in the interrupt.handler to
//! keep it from being called again immediately upon exit.
//! The parameter \e ulIntFlags can consist of either or both the SSI_RXTO
//! and SSI_RXOR values.
//!
//! \return None.
//
//*****************************************************************************
void
SSIIntClear(unsigned long ulBase, unsigned long ulIntFlags)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);

    //
    // Clear the requested interrupt sources.
    //
    HWREG(ulBase + SSI_O_ICR) = ulIntFlags;
}

//*****************************************************************************
//
//! Puts a data element into the SSI transmit FIFO.
//!
//! \param ulBase specifies the SSI module base address.
//! \param ulData data to be transmitted over the SSI interface.
//!
//! This function will place the supplied data into the transmit FIFO of
//! the specified SSI module.
//!
//! \note The upper 32 - N bits of the \e ulData will be discarded by the
//! hardware, where N is the data width as configured by SSIConfig().  For
//! example, if the interface is configured for 8 bit data width, the upper 24
//! bits of \e ulData will be discarded.
//!
//! \return None.
//
//*****************************************************************************
void
SSIDataPut(unsigned long ulBase, unsigned long ulData)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);
    ASSERT((ulData & (0xfffffffe << (HWREG(ulBase + SSI_O_CR0) &
                                     SSI_CR0_DSS))) == 0);

    //
    // Wait until there is space.
    //
    while(!(HWREG(ulBase + SSI_O_SR) & SSI_SR_TNF))
    {
    }

    //
    // Write the data to the SSI.
    //
    HWREG(ulBase + SSI_O_DR) = ulData;
}

//*****************************************************************************
//
//! Puts a data element into the SSI transmit FIFO.
//!
//! \param ulBase specifies the SSI module base address.
//! \param ulData data to be transmitted over the SSI interface.
//!
//! This function will place the supplied data into the transmit FIFO of
//! the specified SSI module. If there is no space in the FIFO, then this
//! function will return a zero.
//!
//! \note The upper 32 - N bits of the \e ulData will be discarded by the
//! hardware, where N is the data width as configured by SSIConfig().  For
//! example, if the interface is configured for 8 bit data width, the upper 24
//! bits of \e ulData will be discarded.
//!
//! \return Returns the number of elements written to the SSI transmit FIFO.
//
//*****************************************************************************
long
SSIDataNonBlockingPut(unsigned long ulBase, unsigned long ulData)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);
    ASSERT((ulData & (0xfffffffe << (HWREG(ulBase + SSI_O_CR0) &
                                     SSI_CR0_DSS))) == 0);

    //
    // Check for space to write.
    //
    if(HWREG(ulBase + SSI_O_SR) & SSI_SR_TNF)
    {
        HWREG(ulBase + SSI_O_DR) = ulData;
        return(1);
    }
    else
    {
        return(0);
    }
}

//*****************************************************************************
//
//! Gets a data element from the SSI receive FIFO.
//!
//! \param ulBase specifies the SSI module base address.
//! \param pulData pointer to a storage location for data that was received
//! over the SSI interface.
//!
//! This function will get received data from the receive FIFO of the specified
//! SSI module, and place that data into the location specified by the
//! \e pulData parameter.
//!
//! \note Only the lower N bits of the value written to \e pulData will contain
//! valid data, where N is the data width as configured by SSIConfig().  For
//! example, if the interface is configured for 8 bit data width, only the
//! lower 8 bits of the value written to \e pulData will contain valid data.
//!
//! \return None.
//
//*****************************************************************************
void
SSIDataGet(unsigned long ulBase, unsigned long *pulData)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);

    //
    // Wait until there is data to be read.
    //
    while(!(HWREG(ulBase + SSI_O_SR) & SSI_SR_RNE))
    {
    }

    //
    // Read data from SSI.
    //
    *pulData = HWREG(ulBase + SSI_O_DR);
}

//*****************************************************************************
//
//! Gets a data element from the SSI receive FIFO.
//!
//! \param ulBase specifies the SSI module base address.
//! \param ulData pointer to a storage location for data that was received
//! over the SSI interface.
//!
//! This function will get received data from the receive FIFO of
//! the specified SSI module, and place that data into the location specified
//! by the \e ulData parameter. If there is no data in the FIFO, then this
//! function will return a zero.
//!
//! \note Only the lower N bits of the value written to \e pulData will contain
//! valid data, where N is the data width as configured by SSIConfig().  For
//! example, if the interface is configured for 8 bit data width, only the
//! lower 8 bits of the value written to \e pulData will contain valid data.
//!
//! \return Returns the number of elements read from the SSI receive FIFO.
//
//*****************************************************************************
long
SSIDataNonBlockingGet(unsigned long ulBase, unsigned long *ulData)
{ 
   //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);

    //
    // Check for data to read.
    //
    if(HWREG(ulBase + SSI_O_SR) & SSI_SR_RNE)
    {
        *ulData = HWREG(ulBase + SSI_O_DR);
        return(1);
    }
    else
    {
        return(0);
    }
}

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区av| 日韩电影在线一区二区| 亚洲6080在线| 成人av片在线观看| 在线综合视频播放| 亚洲免费视频中文字幕| 精品一区二区在线观看| 欧美视频自拍偷拍| 欧美经典一区二区| 蜜桃传媒麻豆第一区在线观看| 中文字幕一区二区三区精华液| 欧美激情综合五月色丁香小说| 久久久久97国产精华液好用吗| 久久精品人人做| 精品国产乱码久久久久久牛牛| 26uuu欧美| 久久久99精品免费观看不卡| 亚洲成人精品在线观看| 首页国产丝袜综合| 日本韩国欧美国产| 一区精品在线播放| 天使萌一区二区三区免费观看| 日韩在线一区二区三区| 欧美草草影院在线视频| 亚洲一区二区在线播放相泽| av电影天堂一区二区在线观看| 成人性生交大片免费看中文| 色悠悠久久综合| 亚洲三级在线免费观看| 成人免费视频一区| 国产精品电影院| 成人黄色软件下载| 最近日韩中文字幕| 91久久线看在观草草青青| 综合久久久久久久| 91视频观看免费| 亚洲精品一卡二卡| 欧美三级电影网| 亚洲一区二区三区四区中文字幕| 美女脱光内衣内裤视频久久影院| 成人在线视频一区| 欧美专区亚洲专区| 亚洲不卡在线观看| 久久99久久久久久久久久久| 欧美一级精品在线| 精品一区二区三区免费| 91免费国产视频网站| 国产精品欧美久久久久一区二区| 天涯成人国产亚洲精品一区av| 国产一区二区三区免费观看| 国产人成亚洲第一网站在线播放 | 国产剧情av麻豆香蕉精品| 26uuu国产日韩综合| 激情六月婷婷久久| 综合在线观看色| 激情综合色播激情啊| 国产精品欧美久久久久一区二区| 喷水一区二区三区| 国产亚洲欧美日韩日本| 亚洲va天堂va国产va久| 精品少妇一区二区三区在线视频| 亚洲国产综合91精品麻豆| 欧美一级日韩免费不卡| 国产剧情av麻豆香蕉精品| 亚洲欧洲性图库| 国产在线视视频有精品| 国产精品免费视频网站| 欧美日韩mp4| 国产1区2区3区精品美女| 一区二区成人在线观看| 日韩欧美国产一区二区三区 | 色94色欧美sute亚洲线路二| 亚洲18色成人| 国产精品女主播在线观看| 欧美亚洲一区三区| 国产精品亲子乱子伦xxxx裸| 欧美午夜精品免费| 国产成人午夜视频| 午夜国产精品一区| 国产精品网站在线| 91精品国产综合久久精品| 成人毛片视频在线观看| 亚洲成av人片一区二区三区| 国产日韩成人精品| 欧美精品免费视频| 97久久精品人人爽人人爽蜜臀| 精品第一国产综合精品aⅴ| 色av成人天堂桃色av| 国产精品1区2区3区| 亚洲国产精品人人做人人爽| 国产欧美一区二区三区在线老狼| 久久国产剧场电影| 欧美xxxx老人做受| 国产一区在线不卡| 国产亚洲婷婷免费| 欧美一区二区三区影视| 99久久婷婷国产综合精品电影| 国产精品国产三级国产有无不卡| 成人久久视频在线观看| 亚洲三级在线看| www成人在线观看| 777a∨成人精品桃花网| 在线观看日韩毛片| 99精品视频在线免费观看| 国产精品一卡二卡| 蜜臂av日日欢夜夜爽一区| 亚洲网友自拍偷拍| 一区二区三区在线观看国产| 国产精品伦理一区二区| 久久久噜噜噜久噜久久综合| 精品久久人人做人人爰| 欧美一二三四在线| 欧美二区乱c少妇| 欧美高清视频一二三区| 欧美日韩在线播| 欧美体内she精视频| 欧美在线你懂得| 91成人看片片| 欧美日韩卡一卡二| 六月丁香综合在线视频| 国产网站一区二区| 91精彩视频在线观看| 91丨九色porny丨蝌蚪| 97久久精品人人做人人爽50路| 亚洲6080在线| 日韩av在线免费观看不卡| 日本亚洲免费观看| 国产精品全国免费观看高清| 久久久美女艺术照精彩视频福利播放| 色先锋资源久久综合| 色婷婷av一区二区三区大白胸 | 成人精品视频一区| 成人h动漫精品一区二| www.亚洲免费av| 色综合久久综合网97色综合| 91搞黄在线观看| 在线成人av网站| 26uuu另类欧美亚洲曰本| 国产精品久久久久久久久免费丝袜| 欧美喷潮久久久xxxxx| 国产成人综合视频| 91社区在线播放| 欧美日韩美少妇 | 国产一区欧美日韩| 成人激情电影免费在线观看| 色综合天天在线| 欧美老肥妇做.爰bbww视频| 日韩亚洲欧美高清| 国产日韩精品视频一区| 亚洲黄色尤物视频| 日本va欧美va欧美va精品| 成人午夜电影网站| 欧美伦理电影网| 国产拍欧美日韩视频二区| 日韩欧美在线观看一区二区三区| 色狠狠av一区二区三区| 日韩欧美亚洲一区二区| 欧美日韩国产综合久久 | 亚洲精品高清视频在线观看| 爽爽淫人综合网网站| 国产精品亚洲一区二区三区在线| 男人的j进女人的j一区| 丁香婷婷深情五月亚洲| 欧美日韩一区视频| 国产欧美日韩不卡| 视频在线观看一区二区三区| 一区二区三区四区视频精品免费| 国产精品免费视频观看| 免费三级欧美电影| 色综合久久久久综合体桃花网| 不卡一区二区三区四区| 欧美一区二区三区四区视频| 91精品国产一区二区| 中文字幕一区二区三区av| 国产一区在线看| 日韩色在线观看| 午夜精品久久久久久| 91美女片黄在线观看91美女| 日韩精品一区二区三区老鸭窝| 精品伦理精品一区| 日韩高清在线一区| 欧美美女一区二区在线观看| 亚洲日本乱码在线观看| 成人一二三区视频| 26uuu欧美| 韩国v欧美v亚洲v日本v| 欧美一区二区三区免费视频| 日韩午夜激情免费电影| 亚洲不卡av一区二区三区| 天堂一区二区在线免费观看| 美女任你摸久久| 福利一区在线观看| 精品日韩在线一区| 麻豆91在线播放免费| 欧美一区二区三区在线电影| 天堂成人免费av电影一区| 欧美日韩国产在线观看| 精品国产电影一区二区 | 国产成人精品综合在线观看 | 亚洲人123区|