/* Disable all the periph clock via PMC (Becareful of the last 2 bits, it is not periph clock)  */
void PMC_DisableAllPeripherals(void)
/* Disable all the periph clock via PMC (Becareful of the last 2 bits, it is not periph clock)  */
void PMC_DisableAllPeripherals(void)
{
    AT91C_BASE_PMC->PMC_PCDR = MASK_STATUS;
    while((AT91C_BASE_PMC->PMC_PCSR & MASK_STATUS) != 0);
    TRACE_INFO("Disable all periph clocks\n\r");
}