From 715ea79555bcbb2fc994ac26e2977ac99d82897d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 29 Dec 2014 07:01:36 -0600 Subject: [PATCH] STM32F429i-Disco USBMC configuration: SPI1 should not be enabled. It is not supported --- configs/stm32f429i-disco/src/stm32_spi.c | 3 ++- configs/stm32f429i-disco/usbmsc/defconfig | 9 +-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/configs/stm32f429i-disco/src/stm32_spi.c b/configs/stm32f429i-disco/src/stm32_spi.c index 5eb95de854..2a640df935 100644 --- a/configs/stm32f429i-disco/src/stm32_spi.c +++ b/configs/stm32f429i-disco/src/stm32_spi.c @@ -311,6 +311,7 @@ int stm32_spi5cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd) * Valid SPI device structure reference on success; a NULL on failure * ******************************************************************************/ + #ifdef CONFIG_STM32_SPI5 FAR struct spi_dev_s *stm32_spi5initialize(void) { @@ -322,4 +323,4 @@ FAR struct spi_dev_s *stm32_spi5initialize(void) return g_spidev5; } #endif -#endif /* CONFIG_STM32_SPI1 || CONFIG_STM32_SPI2 */ +#endif /* CONFIG_STM32_SPI1 || ... CONFIG_STM32_SPI5 */ diff --git a/configs/stm32f429i-disco/usbmsc/defconfig b/configs/stm32f429i-disco/usbmsc/defconfig index 5f03479711..d06bc9cc21 100644 --- a/configs/stm32f429i-disco/usbmsc/defconfig +++ b/configs/stm32f429i-disco/usbmsc/defconfig @@ -292,7 +292,7 @@ CONFIG_STM32_OTGHS=y CONFIG_STM32_PWR=y # CONFIG_STM32_RNG is not set # CONFIG_STM32_SDIO is not set -CONFIG_STM32_SPI1=y +# CONFIG_STM32_SPI1 is not set # CONFIG_STM32_SPI2 is not set # CONFIG_STM32_SPI3 is not set # CONFIG_STM32_SPI4 is not set @@ -322,7 +322,6 @@ CONFIG_STM32_USART1=y # CONFIG_STM32_UART8 is not set # CONFIG_STM32_IWDG is not set # CONFIG_STM32_WWDG is not set -CONFIG_STM32_SPI=y # # Alternate Pin Mapping @@ -347,12 +346,6 @@ CONFIG_STM32_USART=y # CONFIG_STM32_FLOWCONTROL_BROKEN is not set # CONFIG_STM32_USART_SINGLEWIRE is not set -# -# SPI Configuration -# -# CONFIG_STM32_SPI_INTERRUPTS is not set -# CONFIG_STM32_SPI_DMA is not set - # # USB FS Host Configuration #