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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ssi.c

?? freertosV4.40 是一種small的嵌入式系統(tǒng)。利于嵌入式開好者入門學(xué)習(xí)嵌入式操作系統(tǒng)。通過對(duì)于源碼的學(xué)習(xí)可以很好的掌握freertos的運(yùn)行機(jī)制。
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_intenable) || defined(BUILD_ALL) || defined(DOXYGEN)
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;
}
#endif

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
#if defined(GROUP_intdisable) || defined(BUILD_ALL) || defined(DOXYGEN)
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);
}
#endif

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
#if defined(GROUP_intstatus) || defined(BUILD_ALL) || defined(DOXYGEN)
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));
    }
}
#endif

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
#if defined(GROUP_intclear) || defined(BUILD_ALL) || defined(DOXYGEN)
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;
}
#endif

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
#if defined(GROUP_dataput) || defined(BUILD_ALL) || defined(DOXYGEN)
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;
}
#endif

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
#if defined(GROUP_datanonblockingput) || defined(BUILD_ALL) || defined(DOXYGEN)
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);
    }
}
#endif

//*****************************************************************************
//
//! 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.
//
//*****************************************************************************
#if defined(GROUP_dataget) || defined(BUILD_ALL) || defined(DOXYGEN)
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);
}
#endif

//*****************************************************************************
//
//! 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 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.
//
//*****************************************************************************
#if defined(GROUP_datanonblockingget) || defined(BUILD_ALL) || defined(DOXYGEN)
long
SSIDataNonBlockingGet(unsigned long ulBase, unsigned long *pulData)
{ 
   //
    // Check the arguments.
    //
    ASSERT(ulBase == SSI_BASE);

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

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美日韩精品久久久久| 色婷婷久久久久swag精品| 97精品久久久午夜一区二区三区 | 色综合天天综合网天天狠天天| 自拍偷拍国产亚洲| 精品免费国产一区二区三区四区| 91天堂素人约啪| 国产资源精品在线观看| 亚洲综合免费观看高清完整版在线| 欧美一区永久视频免费观看| 成人在线视频首页| 紧缚捆绑精品一区二区| 国产精品美女久久久久高潮| 91福利在线免费观看| 一本一本久久a久久精品综合麻豆| 亚洲人成精品久久久久久| 久久久99精品免费观看不卡| 91精品国产欧美日韩| 欧美美女喷水视频| 99久久精品99国产精品| 国产不卡视频在线观看| 久草在线在线精品观看| 久久国产婷婷国产香蕉| 亚洲18影院在线观看| 午夜伊人狠狠久久| 亚洲成va人在线观看| 日韩精品色哟哟| 天天色 色综合| 日本中文一区二区三区| 麻豆精品蜜桃视频网站| 国内久久精品视频| 国产不卡视频在线播放| 99久精品国产| 欧美羞羞免费网站| 日韩欧美色综合| 国产视频一区二区在线| 国产精品久久久爽爽爽麻豆色哟哟| 中文av一区特黄| 一区二区成人在线| 久久99久久99精品免视看婷婷| 国内精品嫩模私拍在线| 成人短视频下载| 欧美浪妇xxxx高跟鞋交| 中文一区一区三区高中清不卡| 中文字幕一区二区三区色视频| 樱桃国产成人精品视频| 日产国产高清一区二区三区| 婷婷中文字幕综合| 国产精品99久久久久久久vr| 91在线观看一区二区| 精品美女被调教视频大全网站| 国产日韩成人精品| 日韩在线a电影| 91天堂素人约啪| 国产亚洲福利社区一区| 首页亚洲欧美制服丝腿| 国产成人av一区二区| 欧美精选一区二区| 自拍偷在线精品自拍偷无码专区| 久久99国产精品麻豆| 欧美手机在线视频| 亚洲男帅同性gay1069| 日本va欧美va欧美va精品| 91美女片黄在线| 中文字幕成人在线观看| 蜜乳av一区二区| 欧美日韩国产综合视频在线观看| 国产欧美日韩综合精品一区二区| 日韩电影在线观看一区| 欧美日韩一区小说| 亚洲精选视频在线| 在线观看一区不卡| 亚洲欧美激情在线| 日本精品视频一区二区| 一区二区三区在线影院| 91影视在线播放| 国产精品美女久久久久aⅴ | 在线综合亚洲欧美在线视频| 欧美一区二区三区免费视频| 亚洲伊人色欲综合网| 欧美日韩国产综合视频在线观看| 亚洲资源中文字幕| 欧美丰满少妇xxxxx高潮对白| 亚洲最色的网站| 欧美精品18+| 国模套图日韩精品一区二区 | 久久亚洲综合av| caoporn国产一区二区| 中文字幕一区av| 欧美日本一区二区三区| 精品中文字幕一区二区| 国产精品久久久久一区二区三区 | 国产精品久久久久久久久免费相片| 99r国产精品| 奇米888四色在线精品| 久久香蕉国产线看观看99| 91麻豆国产精品久久| 丝袜国产日韩另类美女| 日韩欧美一级片| 不卡的av网站| 日本一道高清亚洲日美韩| 欧美国产日韩一二三区| 欧美美女黄视频| 一本到不卡精品视频在线观看| 轻轻草成人在线| 自拍av一区二区三区| 久久人人爽爽爽人久久久| 欧美剧情片在线观看| av在线不卡网| 国产在线精品免费| 调教+趴+乳夹+国产+精品| 国产精品久久网站| 精品久久久久久久久久久久包黑料 | 日本美女视频一区二区| 亚洲最大的成人av| 国产精品久久久久久久久晋中| 欧美不卡在线视频| 欧美成人高清电影在线| 欧美精品第1页| 91九色02白丝porn| 一本大道久久精品懂色aⅴ| 国v精品久久久网| 国产高清精品久久久久| 国内精品伊人久久久久av一坑| 爽好久久久欧美精品| 日韩二区三区在线观看| 奇米影视在线99精品| 人妖欧美一区二区| 韩国v欧美v亚洲v日本v| 国产夫妻精品视频| jlzzjlzz亚洲女人18| 93久久精品日日躁夜夜躁欧美| 成人自拍视频在线| 91小视频免费观看| 在线国产亚洲欧美| 欧美一级日韩不卡播放免费| 精品蜜桃在线看| 日本一区二区成人| 亚洲最大成人网4388xx| 午夜一区二区三区视频| 精品亚洲欧美一区| 成人视屏免费看| 欧美伊人精品成人久久综合97| 欧美性欧美巨大黑白大战| 日本精品裸体写真集在线观看| 日韩一级片在线观看| 亚洲国产精品二十页| 国产欧美日韩三区| 亚洲一区在线电影| 狠狠色伊人亚洲综合成人| av午夜一区麻豆| 日韩欧美久久一区| 亚洲色图色小说| 蜜臀av一级做a爰片久久| 91丨porny丨户外露出| 欧美不卡123| 亚洲图片欧美一区| 成人av片在线观看| 日韩欧美资源站| 亚洲精品乱码久久久久久| 国产不卡一区视频| 欧美xxxxxxxxx| 石原莉奈在线亚洲二区| 91色乱码一区二区三区| 日本一区二区视频在线观看| 免费观看在线色综合| 制服丝袜中文字幕亚洲| 亚洲精品中文字幕乱码三区 | 欧美精品一区二区三区在线播放 | 欧美体内she精视频| 亚洲日本一区二区| 波多野洁衣一区| 日韩精品一区二| 精品亚洲国内自在自线福利| 欧美一级艳片视频免费观看| 亚洲国产一区二区在线播放| 99久精品国产| 18欧美亚洲精品| 日本精品免费观看高清观看| 亚洲精品国产一区二区精华液| 色综合天天综合网国产成人综合天| 国产精品麻豆久久久| 91麻豆swag| 亚洲线精品一区二区三区| 欧美日韩夫妻久久| 久久国产精品99久久人人澡| 欧美在线999| 国产欧美日韩视频在线观看| 国产精品亚洲综合一区在线观看| 日韩欧美国产麻豆| 国产91精品一区二区麻豆网站| 成人欧美一区二区三区1314| 欧美亚洲一区二区在线观看| 日本不卡123| 欧美国产日本视频| 91国产丝袜在线播放| 日本特黄久久久高潮| 国产精品青草综合久久久久99| 在线观看一区日韩| 国产精一品亚洲二区在线视频|