What state are GPIOs in if they are set to Alternative Function, but the controlling peripheral is disabled?
For example, if two pins are set, via the Alternative Function registers, to be the rx and tx for a UART, but that UART is disabled, what state are the pins left in if the various GPIO registers are not changed?
Does the rx pin remain an input, and the tx an output? Does the tx level stay at its previous value, or does it revert to whatever is in the corresponding bit of its GPIO output register?
(As far as I can tell, the STM32L4 reference manual is silent on this, and I've been unable to find any definitive answer. The closest is this question, though it doesn't address this specific question.)
