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

@return general status: success or !success
Enable the RTC interrupt . @param iAlarmNumber enumeration for alarma A or B . @return general status : success or !success
tEtaStatus
EtaCspRtcIntEnable(tRtcAlarmNum iAlarmNumber)
{
    switch(iAlarmNumber)
    {
        case eAlarmA:
        {
             RMW and set this bit.
            REG_S1(RTC_CSRA, INT_ENABLE);
            break;
        }
        case eAlarmB:
        {
             RMW and set this bit.
            REG_S1(RTC_CSRB, INT_ENABLE);
            break;
        }
        default:
        {
            return(eEtaFailure);
        }
    }
     Fence to make sure it is enabled before returning.
    EtaCspRtcFenceFast();
     Return success.
    return(eEtaSuccess);
}
tEtaStatus EtaCspRtcIntEnable ( tRtcAlarmNum iAlarmNumber ) { switch ( iAlarmNumber ) { case eAlarmA : { REG_S1 ( RTC_CSRA , INT_ENABLE ) ; break ; } case eAlarmB : { REG_S1 ( RTC_CSRB , INT_ENABLE ) ; break ; } default : { return ( eEtaFailure ) ; } } EtaCspRtcFenceFast ( ) ; return ( eEtaSuccess ) ; }
EtaCspRtcIntEnable - Enable the RTC interrupt.
EtaCspRtcIntEnable - Enable the RTC interrupt .
// // RMW and set this bit. // // // RMW and set this bit. // // // Fence to make sure it is enabled before returning. // // // Return success. //