diff --git a/configs/nucleo-144/src/nucleo-144.h b/configs/nucleo-144/src/nucleo-144.h index 0bdf6e1f234..5939dd09543 100644 --- a/configs/nucleo-144/src/nucleo-144.h +++ b/configs/nucleo-144/src/nucleo-144.h @@ -139,7 +139,6 @@ #define SDIO_SLOTNO 0 /* Only one slot */ #ifdef HAVE_SDIO - # if defined(CONFIG_STM32F7_SDMMC1) # define GPIO_SDMMC1_NCD (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI | GPIO_PORTC | GPIO_PIN6) # endif @@ -154,6 +153,7 @@ # else # define SDIO_MINOR 0 # endif +#endif /* USB OTG FS * diff --git a/configs/nucleo-l496zg/src/nucleo-144.h b/configs/nucleo-l496zg/src/nucleo-144.h index 6c006bde65c..8851df246ac 100644 --- a/configs/nucleo-l496zg/src/nucleo-144.h +++ b/configs/nucleo-l496zg/src/nucleo-144.h @@ -139,7 +139,6 @@ #define SDIO_SLOTNO 0 /* Only one slot */ #ifdef HAVE_SDIO - # if defined(CONFIG_STM32L4_SDMMC1) # define GPIO_SDMMC1_NCD (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI | GPIO_PORTC | GPIO_PIN6) # endif @@ -154,6 +153,7 @@ # else # define SDIO_MINOR 0 # endif +#endif /* USB OTG FS * diff --git a/configs/olimex-stm32-h407/src/olimex-stm32-h407.h b/configs/olimex-stm32-h407/src/olimex-stm32-h407.h index 3e2f35ad555..2b6edb38c17 100644 --- a/configs/olimex-stm32-h407/src/olimex-stm32-h407.h +++ b/configs/olimex-stm32-h407/src/olimex-stm32-h407.h @@ -47,6 +47,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ #define HAVE_USBDEV 1 @@ -103,7 +104,6 @@ #define SDIO_SLOTNO 0 /* Only one slot */ #ifdef HAVE_SDIO - # if defined(CONFIG_NSH_MMCSDSLOTNO) && CONFIG_NSH_MMCSDSLOTNO != 0 # warning Only one MMC/SD slot, slot 0 # define CONFIG_NSH_MMCSDSLOTNO SDIO_SLOTNO @@ -114,6 +114,7 @@ # else # define SDIO_MINOR 0 # endif +#endif /* Check if we can support the RTC driver */ diff --git a/configs/stm32f4discovery/src/stm32f4discovery.h b/configs/stm32f4discovery/src/stm32f4discovery.h index 14fda19ff7d..3b3cf1ece80 100644 --- a/configs/stm32f4discovery/src/stm32f4discovery.h +++ b/configs/stm32f4discovery/src/stm32f4discovery.h @@ -123,7 +123,6 @@ #define SDIO_SLOTNO 0 /* Only one slot */ #ifdef HAVE_SDIO - # if !defined(CONFIG_NSH_MMCSDSLOTNO) # define CONFIG_NSH_MMCSDSLOTNO SDIO_SLOTNO # elif CONFIG_NSH_MMCSDSLOTNO != 0 @@ -137,6 +136,7 @@ # else # define SDIO_MINOR 0 # endif +#endif /* The CS43L22 depends on the CS43L22 driver, I2C1, and I2S3 support */