Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_rtc.c
/***************************************************************************/
/**
 *
 *  EtaCspRtcIntClear - Clear the RTC interrupt.
 *
 *  @param iAlarmNumber enumeration for alarma A or B.
 *
 *  @return general status: success or !success
 ******************************************************************************/
Clear the RTC interrupt.
@param iAlarmNumber enumeration for alarma A or B.

@return general status: success or !success
Clear the RTC interrupt . @param iAlarmNumber enumeration for alarma A or B . @return general status : success or !success
tEtaStatus
EtaCspRtcIntClear(tRtcAlarmNum iAlarmNumber)
{
    switch(iAlarmNumber)
    {
        case eAlarmA:
        {
            REG_M1(RTC_CSRA, INT_STAT, 1);
            EtaCspRtcFenceFast();
            break;
        }
        case eAlarmB:
        {
            REG_M1(RTC_CSRB, INT_STAT, 1);
            EtaCspRtcFenceFast();
            break;
        }
        default:
        {
            return(eEtaFailure);
        }
    }
    return(eEtaSuccess);
}
tEtaStatus EtaCspRtcIntClear ( tRtcAlarmNum iAlarmNumber ) { switch ( iAlarmNumber ) { case eAlarmA : { REG_M1 ( RTC_CSRA , INT_STAT , 1 ) ; EtaCspRtcFenceFast ( ) ; break ; } case eAlarmB : { REG_M1 ( RTC_CSRB , INT_STAT , 1 ) ; EtaCspRtcFenceFast ( ) ; break ; } default : { return ( eEtaFailure ) ; } } return ( eEtaSuccess ) ; }
EtaCspRtcIntClear - Clear the RTC interrupt.
EtaCspRtcIntClear - Clear the RTC interrupt .