/* Enable the time tick or alarm interrupt of RTC. This function is to enable the time tick or alarm interrupt of RTC.  */
void xRTCIntEnable(unsigned long ulIntType)
/* Enable the time tick or alarm interrupt of RTC. This function is to enable the time tick or alarm interrupt of RTC.  */
void xRTCIntEnable(unsigned long ulIntType)
{
    xASSERT(( ulIntType == xRTC_INT_SECOND ) ||
            ( ulIntType == xRTC_INT_ALARM  ) ||
            ( ulIntType == (xRTC_INT_SECOND | xRTC_INT_ALARM) ));
    if(ulIntType & xRTC_INT_SECOND)
    {
        RTCIntCfg((INT_SEC_EN  | INT_MIN_DIS | INT_HOUR_DIS | INT_DOM_DIS  |
                   INT_DOW_DIS | INT_DOY_DIS | INT_MON_DIS  | INT_YEAR_DIS ));
    }
    if(ulIntType & xRTC_INT_ALARM)
    {
        RTCIntCfg((INT_ALARM_SEC_EN  | INT_ALARM_MIN_EN  |
                   INT_ALARM_HOUR_EN | INT_ALARM_DOM_EN  |
                   INT_ALARM_DOW_EN  | INT_ALARM_DOY_EN  |
                   INT_ALARM_MON_EN  | INT_ALARM_YEAR_EN ));
    }
}