/* Disables the voltage regulator, which makes the device enter backup mode.  */
void SUPC_DisableVoltageRegulator(void)
/* Disables the voltage regulator, which makes the device enter backup mode.  */
void SUPC_DisableVoltageRegulator(void)
{
    AT91C_BASE_SUPC->SUPC_CR = SUPC_KEY | AT91C_SUPC_VROFF;
    while (1);
}