Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_spi.c
/***************************************************************************/
/**
 *
 * EtaCspSpiXmitDonePoll - Poll for All Transmit / Receive to be Done
 *
 * @return Return the status.
 *
 ******************************************************************************/
Poll for All Transmit / Receive to be Done
@return Return the status.
Poll for All Transmit / Receive to be Done @return Return the status .
tEtaStatus
EtaCspSpiXmitDonePoll()
{
    uint32_t ui32Timeout = 10000000;
    while((--ui32Timeout) &&
          ((REG_SPI2_STATUS & BM_SPI2_STATUS_XMIT_COMPLETE) == 0))
    {
    }
    if(ui32Timeout == 0)
    {
        return(eEtaSpiDoneTimeout);
    }
    else
    {
        return(eEtaSuccess);
    }
}
tEtaStatus EtaCspSpiXmitDonePoll ( ) { uint32_t ui32Timeout = 10000000 ; while ( ( -- ui32Timeout ) && ( ( REG_SPI2_STATUS & BM_SPI2_STATUS_XMIT_COMPLETE ) == 0 ) ) { } if ( ui32Timeout == 0 ) { return ( eEtaSpiDoneTimeout ) ; } else { return ( eEtaSuccess ) ; } }
EtaCspSpiXmitDonePoll - Poll for All Transmit / Receive to be Done
 @return Return the status.
EtaCspSpiXmitDonePoll - Poll for All Transmit / Receive to be Done @return Return the status .
// In the extremes, this should // be 10,000 bit times.