Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_spi.c
/***************************************************************************/
/**
 *
 *  EtaCspSpiProcessIntCmdDone - Process SPI Interrupt for Command Done
 *
 ******************************************************************************/
Process SPI Interrupt for Command Done
Process SPI Interrupt for Command Done
tEtaStatus
EtaCspSpiProcessIntCmdDone()
{
    if((gsSpiCmd.bCmdActive == 0) ||
       (gsSpiCmd.ui16TxLen != 0) ||
       (gsSpiCmd.ui16RxLen != 0))
    {
        return(eEtaSpiCmdSequenceErr);
    }
    gsSpiCmd.bCmdActive = 0;
    gsSpiCmd.spiStatus = eEtaSuccess;
    REG_SPI2_INT_EN = (REG_SPI2_INT_EN & ~BM_SPI2_INT_EN_CMD_IS_DONE_EN0);
    return(eEtaSuccess);
}
tEtaStatus EtaCspSpiProcessIntCmdDone ( ) { if ( ( gsSpiCmd . bCmdActive == 0 ) || ( gsSpiCmd . ui16TxLen != 0 ) || ( gsSpiCmd . ui16RxLen != 0 ) ) { return ( eEtaSpiCmdSequenceErr ) ; } gsSpiCmd . bCmdActive = 0 ; gsSpiCmd . spiStatus = eEtaSuccess ; REG_SPI2_INT_EN = ( REG_SPI2_INT_EN & ~ BM_SPI2_INT_EN_CMD_IS_DONE_EN0 ) ; return ( eEtaSuccess ) ; }
EtaCspSpiProcessIntCmdDone - Process SPI Interrupt for Command Done
EtaCspSpiProcessIntCmdDone - Process SPI Interrupt for Command Done