Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_spi.c
/***************************************************************************/
/**
 *
 * EtaCspSpiRxDataPoll - Poll for RX data ready.
 *
 * @return Return the status.
 *
 ******************************************************************************/
Poll for RX data ready.
@return Return the status.
Poll for RX data ready . @return Return the status .
tEtaStatus
EtaCspSpiRxDataPoll()
{
    uint32_t ui32Timeout = 10000000;
    while((--ui32Timeout) &&
          ((REG_SPI2_STATUS & BM_SPI2_STATUS_RXFIFO_HAS_1DATA) == 0))
    {
    }
    if(ui32Timeout == 0)
    {
        return(eEtaSpiRecTimeout);
    }
    else
    {
        return(eEtaSuccess);
    }
}
tEtaStatus EtaCspSpiRxDataPoll ( ) { uint32_t ui32Timeout = 10000000 ; while ( ( -- ui32Timeout ) && ( ( REG_SPI2_STATUS & BM_SPI2_STATUS_RXFIFO_HAS_1DATA ) == 0 ) ) { } if ( ui32Timeout == 0 ) { return ( eEtaSpiRecTimeout ) ; } else { return ( eEtaSuccess ) ; } }
EtaCspSpiRxDataPoll - Poll for RX data ready.
EtaCspSpiRxDataPoll - Poll for RX data ready .
// In the extremes, this should // be 10,000 bit times.