From 8263fce80f2167d6849fc9a3389775efebc1b2c3 Mon Sep 17 00:00:00 2001 From: Alex Stewart Date: Wed, 19 Aug 2015 16:53:02 -0700 Subject: [PATCH] Fix leftover IOMUX_FUNC_A/D references --- core/include/esp/iomux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/include/esp/iomux.h b/core/include/esp/iomux.h index f4096ed..f6715f4 100644 --- a/core/include/esp/iomux.h +++ b/core/include/esp/iomux.h @@ -56,7 +56,7 @@ inline static esp_reg_t gpio_iomux_reg(const uint8_t gpio_number) inline static void iomux_set_gpio_function(const uint8_t gpio_number, const uint32_t flags) { const uint8_t reg_idx = gpio_to_iomux(gpio_number); - const uint32_t func = (reg_idx > 11 ? IOMUX_FUNC_A : IOMUX_FUNC_D) | flags; + const uint32_t func = (reg_idx > 11 ? IOMUX_FUNC(0) : IOMUX_FUNC(3)) | flags; IOMUX.PIN[reg_idx] = func | flags; }