Hello,
I am trying to keep all peripherals running, but just put the CPU core in "sleep" mode to save power. I have tried the following:
/* Disable clock domains */
systemREG1->CSDDISSET= 1; // Just Disable GCLK
// I tried this command also:
systemREG1->CSDDIS = 1; // Just Disable GCLK
/* Idle CPU */
asm(" WFI");
But the CPU just keeps running. I am expecting it to halt until an interrupt occurs.