Any easy way to find out after WFI() if device did sleep?
Is there an easy way to find out after the WFI() instruction if the device did really sleep? Using stop modes, the device will have switched clock to HSI/MSI. Setting the clock to the state before sleep is some effort and could be omitted, if sleep...