Kevin O'Connor 116b304541 avr: Switch to input state prior to enabling pullup in gpio_in_reset()
If switching a pin from output low to input with pullup, there is an
intermediate state of either driven high or high impedance without a
pullup.  Similarly, when switching from output high to input without a
pullup, there is an intermediate state of either driven low or high
impedence with a pullup.  In both cases it is preferable for the
latter transition.

Also, calculate the final setting prior to making any changes to
reduce the time in that intermediate state.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2025-07-22 14:11:17 -04:00
..
2024-06-10 12:27:12 -04:00
2024-06-10 12:27:12 -04:00
2024-10-26 22:06:30 -04:00
2024-10-26 22:06:30 -04:00
2020-12-04 16:10:13 -05:00
2023-02-20 19:55:25 -05:00
2023-02-20 19:55:25 -05:00
2024-12-12 14:28:45 -05:00
2024-10-26 22:06:30 -04:00