From 9799ab458d8ad870aaec048abf5b1b1d93aa7aff Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 30 Mar 2023 10:15:09 +1100 Subject: fix sd card on for dev + mux pin --- src/drivers/include/gpio_expander.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers/include/gpio_expander.hpp') diff --git a/src/drivers/include/gpio_expander.hpp b/src/drivers/include/gpio_expander.hpp index 86998e7e..d53a1982 100644 --- a/src/drivers/include/gpio_expander.hpp +++ b/src/drivers/include/gpio_expander.hpp @@ -42,9 +42,9 @@ class GpioExpander { // 4 - key lock // 5 - display reset // 6 - NC - // 7 - sd card power + // 7 - sd card power (active low) // Default to SD card off, inputs high. - static const uint8_t kPortADefault = 0b00011110; + static const uint8_t kPortADefault = 0b10011110; // Port B: // 0 - trs output enable @@ -121,8 +121,8 @@ class GpioExpander { /* Nicer value names for use with the SD_MUX_SWITCH pin. */ enum SdController { - SD_MUX_ESP = 1, - SD_MUX_SAMD = 0, + SD_MUX_ESP = 0, + SD_MUX_SAMD = 1, }; /** -- cgit v1.2.3