i'm working on a mobile application in which i need to keep low power as much as i can.
i'd like to wake the processor up only when some data arrive on the Serial.
this is code i write but (of course) it's not working. i'd really appreciate any kind of advice or help.
PMC -> PMC_FSMR |= PMC_FSMR_FSTT4; //Set FSTT4 = 1
flag = 1;