You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/07/16 08:10:13 UTC

[incubator-nuttx] 07/10: stm32f0l0g0/Kconfig: hide STM32F0L0G0_SPI_DMA option and select it automatically

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit d307e5a7f5f5f70efdaff986d34afcbaff3e0f5e
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 19:40:57 2022 +0200

    stm32f0l0g0/Kconfig: hide STM32F0L0G0_SPI_DMA option and select it automatically
---
 arch/arm/src/stm32f0l0g0/Kconfig | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/arm/src/stm32f0l0g0/Kconfig b/arch/arm/src/stm32f0l0g0/Kconfig
index 6e7fa4b0fc..c4721953e9 100644
--- a/arch/arm/src/stm32f0l0g0/Kconfig
+++ b/arch/arm/src/stm32f0l0g0/Kconfig
@@ -1420,6 +1420,10 @@ config STM32F0L0G0_DMA
 config STM32F0L0G0_SPI
 	bool
 
+config STM32F0L0G0_SPI_DMA
+	bool
+	default n
+
 config STM32F0L0G0_I2C
 	bool
 
@@ -2687,25 +2691,21 @@ config STM32F0L0G0_SPI_INTERRUPTS
 		poll-waiting is recommended if the interrupt rate would be to high in
 		the interrupt driven case.
 
-config STM32F0L0G0_SPI_DMA
-	bool "SPI DMA"
-	default n
-	---help---
-		Use DMA to improve SPI transfer performance.  Cannot be used with STM32F0L0G0_SPI_INTERRUPT.
-
 config STM32F0L0G0_SPI1_DMA
 	bool "SPI1 DMA"
 	default n
-	depends on STM32F0L0G0_SPI1 && STM32F0L0G0_SPI_DMA
+	depends on STM32F0L0G0_SPI1 && !STM32F0L0G0_SPI_INTERRUPTS
+	select STM32F0L0G0_SPI_DMA
 	---help---
-		Use DMA to improve SPI1 transfer performance.
+		Use DMA to improve SPI1 transfer performance.  Cannot be used with STM32F0L0G0_SPI_INTERRUPT.
 
 config STM32F0L0G0_SPI2_DMA
 	bool "SPI2 DMA"
 	default n
-	depends on STM32F0L0G0_SPI2 && STM32F0L0G0_SPI_DMA
+	depends on STM32F0L0G0_SPI2 && !STM32F0L0G0_SPI_INTERRUPTS
+	select STM32F0L0G0_SPI_DMA
 	---help---
-		Use DMA to improve SPI2 transfer performance.
+		Use DMA to improve SPI2 transfer performance.  Cannot be used with STM32F0L0G0_SPI_INTERRUPT.
 
 config STM32F0L0G0_SPI1_COMMTYPE
 	int "SPI1 Operation mode"