I want to wake up from standby for each transition on a wkup pin. For example, on waking, read the wakup pin and set/reset the bit in pwr_cr4. (pin high -> bit high, pin low -> bit low). Is there a race condition ? The reference manual is vague on...