/* Enable/Disable the detection of a low level on the pin NRST as User Reset  */
void RSTC_SetUserResetEnable(unsigned char enable)
/* Enable/Disable the detection of a low level on the pin NRST as User Reset  */
void RSTC_SetUserResetEnable(unsigned char enable)
{
    unsigned int rmr = AT91C_BASE_RSTC->RSTC_RMR & (~AT91C_RSTC_KEY);
    if (enable) {
        rmr |=  AT91C_RSTC_URSTEN;
    }
    else {
        rmr &= ~AT91C_RSTC_URSTEN;
    }
    AT91C_BASE_RSTC->RSTC_RMR = rmr | RSTC_KEY_PASSWORD;
}