From cb94579ab7e1d7e5a096608e58e711b8fa9ebbb2 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Fri, 15 Jul 2022 19:34:29 +0200 Subject: [PATCH] stm32wl5/Kconfig: hide STM32WL5_SPI_DMA option and select it automatically --- arch/arm/src/stm32wl5/Kconfig | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/arch/arm/src/stm32wl5/Kconfig b/arch/arm/src/stm32wl5/Kconfig index cce9626d1e..6e26709bf1 100644 --- a/arch/arm/src/stm32wl5/Kconfig +++ b/arch/arm/src/stm32wl5/Kconfig @@ -152,6 +152,11 @@ config STM32WL5_USART config STM32WL5_SPI bool + default n + +config STM32WL5_SPI_DMA + bool + default n # These are the peripheral selections proper @@ -254,18 +259,13 @@ config STM32WL5_SPI_INTERRUPTS poll-waiting is recommended if the interrupt rate would be to high in the interrupt driven case. -config STM32WL5_SPI_DMA - bool "SPI DMA" - default n - ---help--- - Use DMA to improve SPI transfer performance. Cannot be used with STM32WL5_SPI_INTERRUPT. - config STM32WL5_SPI1_DMA bool "SPI1 DMA" default n - depends on STM32WL5_SPI1 && STM32WL5_SPI_DMA + depends on STM32WL5_SPI1 && !STM32WL5_SPI_INTERRUPT + select STM32WL5_SPI_DMA ---help--- - Use DMA to improve SPI1 transfer performance. + Use DMA to improve SPI1 transfer performance. Cannot be used with STM32WL5_SPI_INTERRUPT. config STM32WL5_SPI1_DMA_BUFFER int "SPI1 DMA buffer size" @@ -286,9 +286,10 @@ config STM32WL5_SPI_DMATHRESHOLD config STM32WL5_SPI2S2_DMA bool "SPI2S2 DMA" default n - depends on STM32WL5_SPI2S2 && STM32WL5_SPI_DMA + depends on STM32WL5_SPI2 && !STM32WL5_SPI_INTERRUPT + select STM32WL5_SPI_DMA ---help--- - Use DMA to improve SPI2S2 transfer performance. + Use DMA to improve SPI2S2 transfer performance. Cannot be used with STM32WL5_SPI_INTERRUPT. config STM32WL5_SPI2S2_DMA_BUFFER int "SPI2S2 DMA buffer size"