Before I enter standby mode I set the following pins to inputs.
REG_PORT_DIR0 &= (~PORT_PA05 | ~PORT_PA06 | ~PORT_PA07 | ~PORT_PA08 | ~PORT_PA09 | ~PORT_PA14 | ~PORT_PA15);
I set the seep mode:
SYSCTRL->XOSC32K.bit.RUNSTDBY = 1; SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; __DSB(); __WFI();
And wake up the device with I2C. When in sleep mode my pins should stay in input mode, however I am noticing some weird behaviour. Do GPIO pins change state when in standby? I see a lot of thing that can be controlled before going to sleep (TCC, TC, GCLK, , etc) but don't see anything for INPUT/OUTPUT, is there a way to force the pins to stay INPUTs.