From 047ea89c30165f8d96c52d23b2097f7c72b9acaa Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 27 Jun 2016 08:27:44 -1000 Subject: [PATCH 1/2] Fixed config for D1 only --- arch/arm/src/stm32f7/stm32_sdmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c b/arch/arm/src/stm32f7/stm32_sdmmc.c index d7d78f3006..cf78614e41 100644 --- a/arch/arm/src/stm32f7/stm32_sdmmc.c +++ b/arch/arm/src/stm32f7/stm32_sdmmc.c @@ -3171,7 +3171,7 @@ FAR struct sdio_dev_s *sdio_initialize(int slotno) */ #ifndef CONFIG_SDIO_MUXBUS stm32_configgpio(GPIO_SDMMC1_D0); -#ifndef CONFIG_SDMMC_WIDTH_D1_ONLY +#ifndef CONFIG_SDMMC1_WIDTH_D1_ONLY stm32_configgpio(GPIO_SDMMC1_D1); stm32_configgpio(GPIO_SDMMC1_D2); stm32_configgpio(GPIO_SDMMC1_D3); @@ -3195,7 +3195,7 @@ FAR struct sdio_dev_s *sdio_initialize(int slotno) #ifndef CONFIG_SDIO_MUXBUS stm32_configgpio(GPIO_SDMMC2_D0); -#ifndef CONFIG_SDMMC_WIDTH_D1_ONLY +#ifndef CONFIG_SDMMC2_WIDTH_D1_ONLY stm32_configgpio(GPIO_SDMMC2_D1); stm32_configgpio(GPIO_SDMMC2_D2); stm32_configgpio(GPIO_SDMMC2_D3); From fba8f4c05b0a1a11d3231160e5afd0aa688cced0 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 27 Jun 2016 08:28:30 -1000 Subject: [PATCH 2/2] Moved NCD to PC6 --- configs/nucleo-144/src/nucleo-144.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/nucleo-144/src/nucleo-144.h b/configs/nucleo-144/src/nucleo-144.h index 2d070539d2..e5fa337340 100644 --- a/configs/nucleo-144/src/nucleo-144.h +++ b/configs/nucleo-144/src/nucleo-144.h @@ -141,7 +141,7 @@ #ifdef HAVE_SDIO # if defined(CONFIG_STM32F7_SDMMC1) -# define GPIO_SDMMC1_NCD (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI | GPIO_PORTC | GPIO_PIN11) +# define GPIO_SDMMC1_NCD (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI | GPIO_PORTC | GPIO_PIN6) # endif # if defined(CONFIG_NSH_MMCSDSLOTNO) && (CONFIG_NSH_MMCSDSLOTNO != 0)