/* Sets the BOD sampling mode (or disables it).  */
void SUPC_SetBodSampling(unsigned int mode)
/* Sets the BOD sampling mode (or disables it).  */
void SUPC_SetBodSampling(unsigned int mode)
{
    SANITY_CHECK((mode & ~AT91C_SUPC_BODSMPL) == 0);
    AT91C_BASE_SUPC->SUPC_BOMR &= ~AT91C_SUPC_BODSMPL;
    AT91C_BASE_SUPC->SUPC_BOMR |= mode;
}