/* Changes the prescaler value of the given RTT and restarts it. This function disables RTT interrupt sources.  */
void RTT_SetPrescaler(AT91S_RTTC *rtt, unsigned short prescaler)
/* Changes the prescaler value of the given RTT and restarts it. This function disables RTT interrupt sources.  */
void RTT_SetPrescaler(AT91S_RTTC *rtt, unsigned short prescaler)
{
    rtt->RTTC_RTMR = (prescaler | AT91C_RTTC_RTTRST);
}