pub fn freeze(mut self) -> Self {
        self.flags.insert(InputFlags::Frozen);
        self
    }
Freezes the pin configuration.

This will prevent peripheral drivers using this signal from modifying
the pin settings.
esp-hal/src/gpio/interconnect.rs