/* Clear flag bits of status clear command register in the RTC.  */
void RTC_ClearSCCR(unsigned int mask)
/* Clear flag bits of status clear command register in the RTC.  */
void RTC_ClearSCCR(unsigned int mask)
{
    mask &= AT91C_RTC_ACKUPD | AT91C_RTC_ALARM | AT91C_RTC_SECEV | \
                                    AT91C_RTC_TIMEV | AT91C_RTC_CALEV;
    AT91C_BASE_RTC->RTC_SCCR = mask;
}