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:06 UTC

[incubator-nuttx] branch master updated (3c0a3dabfc -> 8e5e6ab8cb)

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

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


    from 3c0a3dabfc stm32f0l0g0/SPI: add support for half duplex, simplex rx and simplex tx modes
     new cb94579ab7 stm32wl5/Kconfig: hide STM32WL5_SPI_DMA option and select it automatically
     new 6aef19617b stm32h7/Kconfig: hide STM32H7_SPI_DMA option and select it automatically
     new 1616edbb81 stm32f7/Kconfig: hide STM32F7_SPI_DMA option and select it automatically
     new 12273d0aa9 stm32/Kconfig: hide STM32_SPI_DMA option and select it automatically
     new e39afbf277 stm32/Kconfig: set default n for hidden options
     new 1b45982521 stm32f0l0g0/Kconfig: remove the duplicated SPI DMA section
     new d307e5a7f5 stm32f0l0g0/Kconfig: hide STM32F0L0G0_SPI_DMA option and select it automatically
     new a8e7f7742c stm32f0l0g0/Kconfig: set default n for hidden options
     new 1ca8bf2cdb boards: remove references to STM32xx_SPI_DMA, which is now a hidden option
     new 8e5e6ab8cb stm32/Kconfig: stm32_i2s needs SPI_DMA enabled

The 10 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/arm/src/stm32/Kconfig                         | 54 ++++++++++-----
 arch/arm/src/stm32f0l0g0/Kconfig                   | 77 +++++++++++-----------
 arch/arm/src/stm32f7/Kconfig                       | 40 ++++++-----
 arch/arm/src/stm32h7/Kconfig                       | 40 ++++++-----
 arch/arm/src/stm32wl5/Kconfig                      | 21 +++---
 boards/arm/stm32/cloudctrl/README.txt              |  2 +-
 boards/arm/stm32/fire-stm32v2/README.txt           |  2 +-
 boards/arm/stm32/hymini-stm32v/README.txt          |  2 +-
 boards/arm/stm32/mikroe-stm32f4/README.txt         |  2 +-
 .../mikroe-stm32f4/configs/fulldemo/defconfig      |  1 -
 .../olimex-stm32-p407/configs/audio/defconfig      |  1 -
 .../stm32/olimexino-stm32/configs/can/defconfig    |  1 -
 .../olimexino-stm32/configs/composite/defconfig    |  1 -
 .../stm32/olimexino-stm32/configs/nsh/defconfig    |  1 -
 .../olimexino-stm32/configs/smallnsh/defconfig     |  1 -
 .../stm32/olimexino-stm32/configs/tiny/defconfig   |  1 -
 boards/arm/stm32/shenzhou/README.txt               |  2 +-
 boards/arm/stm32/stm3210e-eval/README.txt          |  2 +-
 boards/arm/stm32/stm3220g-eval/README.txt          |  2 +-
 boards/arm/stm32/stm3240g-eval/README.txt          |  2 +-
 boards/arm/stm32/stm32_tiny/README.txt             |  2 +-
 boards/arm/stm32/stm32f103-minimum/README.txt      |  2 +-
 boards/arm/stm32/stm32f3discovery/README.txt       |  2 +-
 boards/arm/stm32/stm32f429i-disco/README.txt       |  2 +-
 boards/arm/stm32/stm32f4discovery/README.txt       |  2 +-
 .../stm32/stm32f4discovery/configs/audio/defconfig |  1 -
 .../stm32/stm32f4discovery/configs/wifi/defconfig  |  1 -
 boards/arm/stm32/stm32ldiscovery/README.txt        |  2 +-
 boards/arm/stm32f7/nucleo-144/README.txt           |  4 +-
 boards/arm/stm32f7/stm32f746g-disco/README.txt     |  2 +-
 30 files changed, 146 insertions(+), 129 deletions(-)


[incubator-nuttx] 09/10: boards: remove references to STM32xx_SPI_DMA, which is now a hidden option

Posted by pk...@apache.org.
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 1ca8bf2cdbd85fb10b6710aa27ca42b5d1194e3d
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 20:04:43 2022 +0200

    boards: remove references to STM32xx_SPI_DMA, which is now a hidden option
---
 boards/arm/stm32/cloudctrl/README.txt                        | 2 +-
 boards/arm/stm32/fire-stm32v2/README.txt                     | 2 +-
 boards/arm/stm32/hymini-stm32v/README.txt                    | 2 +-
 boards/arm/stm32/mikroe-stm32f4/README.txt                   | 2 +-
 boards/arm/stm32/mikroe-stm32f4/configs/fulldemo/defconfig   | 1 -
 boards/arm/stm32/olimex-stm32-p407/configs/audio/defconfig   | 1 -
 boards/arm/stm32/olimexino-stm32/configs/can/defconfig       | 1 -
 boards/arm/stm32/olimexino-stm32/configs/composite/defconfig | 1 -
 boards/arm/stm32/olimexino-stm32/configs/nsh/defconfig       | 1 -
 boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig  | 1 -
 boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig      | 1 -
 boards/arm/stm32/shenzhou/README.txt                         | 2 +-
 boards/arm/stm32/stm3210e-eval/README.txt                    | 2 +-
 boards/arm/stm32/stm3220g-eval/README.txt                    | 2 +-
 boards/arm/stm32/stm3240g-eval/README.txt                    | 2 +-
 boards/arm/stm32/stm32_tiny/README.txt                       | 2 +-
 boards/arm/stm32/stm32f103-minimum/README.txt                | 2 +-
 boards/arm/stm32/stm32f3discovery/README.txt                 | 2 +-
 boards/arm/stm32/stm32f429i-disco/README.txt                 | 2 +-
 boards/arm/stm32/stm32f4discovery/README.txt                 | 2 +-
 boards/arm/stm32/stm32f4discovery/configs/audio/defconfig    | 1 -
 boards/arm/stm32/stm32f4discovery/configs/wifi/defconfig     | 1 -
 boards/arm/stm32/stm32ldiscovery/README.txt                  | 2 +-
 boards/arm/stm32f7/nucleo-144/README.txt                     | 4 +++-
 boards/arm/stm32f7/stm32f746g-disco/README.txt               | 2 +-
 25 files changed, 18 insertions(+), 25 deletions(-)

diff --git a/boards/arm/stm32/cloudctrl/README.txt b/boards/arm/stm32/cloudctrl/README.txt
index daf95bf982..45695fa9f0 100644
--- a/boards/arm/stm32/cloudctrl/README.txt
+++ b/boards/arm/stm32/cloudctrl/README.txt
@@ -353,7 +353,7 @@ Cloudctrl-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
     CONFIG_STM32_PHYADDR - The 5-bit address of the PHY on the board
diff --git a/boards/arm/stm32/fire-stm32v2/README.txt b/boards/arm/stm32/fire-stm32v2/README.txt
index 5330f24de5..3f599f3ed4 100644
--- a/boards/arm/stm32/fire-stm32v2/README.txt
+++ b/boards/arm/stm32/fire-stm32v2/README.txt
@@ -490,7 +490,7 @@ M3 Wildfire-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
     CONFIG_STM32_SDIO_DMA - Support DMA data transfers.  Requires
diff --git a/boards/arm/stm32/hymini-stm32v/README.txt b/boards/arm/stm32/hymini-stm32v/README.txt
index bc798d1e82..06659172d6 100644
--- a/boards/arm/stm32/hymini-stm32v/README.txt
+++ b/boards/arm/stm32/hymini-stm32v/README.txt
@@ -269,7 +269,7 @@ HY-Mini specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
     CONFIG_SDIO_DMA - Support DMA data transfers.  Requires CONFIG_STM32_SDIO
diff --git a/boards/arm/stm32/mikroe-stm32f4/README.txt b/boards/arm/stm32/mikroe-stm32f4/README.txt
index be61fc414b..9b0dd4a714 100644
--- a/boards/arm/stm32/mikroe-stm32f4/README.txt
+++ b/boards/arm/stm32/mikroe-stm32f4/README.txt
@@ -382,7 +382,7 @@ Mikroe-STM32F4-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
   Mikroe-STM32F4 DMA Configuration
diff --git a/boards/arm/stm32/mikroe-stm32f4/configs/fulldemo/defconfig b/boards/arm/stm32/mikroe-stm32f4/configs/fulldemo/defconfig
index 955aebf4dd..17193a6f1a 100644
--- a/boards/arm/stm32/mikroe-stm32f4/configs/fulldemo/defconfig
+++ b/boards/arm/stm32/mikroe-stm32f4/configs/fulldemo/defconfig
@@ -129,7 +129,6 @@ CONFIG_STM32_PWR=y
 CONFIG_STM32_RNG=y
 CONFIG_STM32_RTC=y
 CONFIG_STM32_SPI2=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_TIM1=y
 CONFIG_STM32_USART2=y
 CONFIG_SYSLOG_CHAR=y
diff --git a/boards/arm/stm32/olimex-stm32-p407/configs/audio/defconfig b/boards/arm/stm32/olimex-stm32-p407/configs/audio/defconfig
index d9c46c6168..ffcabbf0e0 100644
--- a/boards/arm/stm32/olimex-stm32-p407/configs/audio/defconfig
+++ b/boards/arm/stm32/olimex-stm32-p407/configs/audio/defconfig
@@ -59,7 +59,6 @@ CONFIG_STM32_OTGFS=y
 CONFIG_STM32_PWR=y
 CONFIG_STM32_SPI3=y
 CONFIG_STM32_SPI3_DMA=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_USART3=y
 CONFIG_STM32_USBHOST=y
 CONFIG_SYSTEM_NSH=y
diff --git a/boards/arm/stm32/olimexino-stm32/configs/can/defconfig b/boards/arm/stm32/olimexino-stm32/configs/can/defconfig
index 764a9be3cc..bd49bc7615 100644
--- a/boards/arm/stm32/olimexino-stm32/configs/can/defconfig
+++ b/boards/arm/stm32/olimexino-stm32/configs/can/defconfig
@@ -89,7 +89,6 @@ CONFIG_STM32_JTAG_FULL_ENABLE=y
 CONFIG_STM32_PWR=y
 CONFIG_STM32_SERIAL_DISABLE_REORDERING=y
 CONFIG_STM32_SPI2=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_TIM1=y
 CONFIG_STM32_TIM1_PARTIAL_REMAP=y
 CONFIG_STM32_TIM3=y
diff --git a/boards/arm/stm32/olimexino-stm32/configs/composite/defconfig b/boards/arm/stm32/olimexino-stm32/configs/composite/defconfig
index 50b523e0b9..af1d8ad946 100644
--- a/boards/arm/stm32/olimexino-stm32/configs/composite/defconfig
+++ b/boards/arm/stm32/olimexino-stm32/configs/composite/defconfig
@@ -111,7 +111,6 @@ CONFIG_STM32_RTC=y
 CONFIG_STM32_SERIAL_DISABLE_REORDERING=y
 CONFIG_STM32_SPI1=y
 CONFIG_STM32_SPI2=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_TIM1=y
 CONFIG_STM32_TIM1_PARTIAL_REMAP=y
 CONFIG_STM32_TIM3=y
diff --git a/boards/arm/stm32/olimexino-stm32/configs/nsh/defconfig b/boards/arm/stm32/olimexino-stm32/configs/nsh/defconfig
index 369df50145..3b9299528e 100644
--- a/boards/arm/stm32/olimexino-stm32/configs/nsh/defconfig
+++ b/boards/arm/stm32/olimexino-stm32/configs/nsh/defconfig
@@ -99,7 +99,6 @@ CONFIG_STM32_RTC=y
 CONFIG_STM32_SERIAL_DISABLE_REORDERING=y
 CONFIG_STM32_SPI1=y
 CONFIG_STM32_SPI2=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_TIM1=y
 CONFIG_STM32_TIM1_PARTIAL_REMAP=y
 CONFIG_STM32_TIM3=y
diff --git a/boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig b/boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig
index 39eee4d3cd..c4365c820e 100644
--- a/boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig
+++ b/boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig
@@ -65,7 +65,6 @@ CONFIG_STM32_JTAG_FULL_ENABLE=y
 CONFIG_STM32_PWR=y
 CONFIG_STM32_SERIAL_DISABLE_REORDERING=y
 CONFIG_STM32_SPI2=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_TIM1=y
 CONFIG_STM32_TIM1_PARTIAL_REMAP=y
 CONFIG_STM32_TIM3=y
diff --git a/boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig b/boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig
index a5065f5b5e..b27f77923a 100644
--- a/boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig
+++ b/boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig
@@ -63,7 +63,6 @@ CONFIG_STM32_JTAG_FULL_ENABLE=y
 CONFIG_STM32_PWR=y
 CONFIG_STM32_SERIAL_DISABLE_REORDERING=y
 CONFIG_STM32_SPI2=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_TIM1=y
 CONFIG_STM32_TIM1_PARTIAL_REMAP=y
 CONFIG_STM32_TIM3=y
diff --git a/boards/arm/stm32/shenzhou/README.txt b/boards/arm/stm32/shenzhou/README.txt
index f321c1b9f5..27e0a0f58f 100644
--- a/boards/arm/stm32/shenzhou/README.txt
+++ b/boards/arm/stm32/shenzhou/README.txt
@@ -370,7 +370,7 @@ Shenzhou-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
     CONFIG_STM32_PHYADDR - The 5-bit address of the PHY on the board
diff --git a/boards/arm/stm32/stm3210e-eval/README.txt b/boards/arm/stm32/stm3210e-eval/README.txt
index 80ec3bc363..fe8f0a46a0 100644
--- a/boards/arm/stm32/stm3210e-eval/README.txt
+++ b/boards/arm/stm32/stm3210e-eval/README.txt
@@ -427,7 +427,7 @@ STM3210E-EVAL-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
     CONFIG_SDIO_DMA - Support DMA data transfers.  Requires CONFIG_STM32_SDIO
diff --git a/boards/arm/stm32/stm3220g-eval/README.txt b/boards/arm/stm32/stm3220g-eval/README.txt
index 3cada360f4..4b854ba7fa 100644
--- a/boards/arm/stm32/stm3220g-eval/README.txt
+++ b/boards/arm/stm32/stm3220g-eval/README.txt
@@ -417,7 +417,7 @@ STM3220G-EVAL-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
     CONFIG_SDIO_DMA - Support DMA data transfers.  Requires CONFIG_STM32_SDIO
diff --git a/boards/arm/stm32/stm3240g-eval/README.txt b/boards/arm/stm32/stm3240g-eval/README.txt
index e9c71f7e79..47f650b2a7 100644
--- a/boards/arm/stm32/stm3240g-eval/README.txt
+++ b/boards/arm/stm32/stm3240g-eval/README.txt
@@ -471,7 +471,7 @@ STM3240G-EVAL-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
     CONFIG_SDIO_DMA - Support DMA data transfers.  Requires CONFIG_STM32_SDIO
diff --git a/boards/arm/stm32/stm32_tiny/README.txt b/boards/arm/stm32/stm32_tiny/README.txt
index b2aadadd0b..ffd2ca76ee 100644
--- a/boards/arm/stm32/stm32_tiny/README.txt
+++ b/boards/arm/stm32/stm32_tiny/README.txt
@@ -257,7 +257,7 @@ STM32 Tiny - specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
 Configurations
diff --git a/boards/arm/stm32/stm32f103-minimum/README.txt b/boards/arm/stm32/stm32f103-minimum/README.txt
index ae1508965f..84571cf497 100644
--- a/boards/arm/stm32/stm32f103-minimum/README.txt
+++ b/boards/arm/stm32/stm32f103-minimum/README.txt
@@ -773,7 +773,7 @@ STM32F103 Minimum - specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
 Configurations
diff --git a/boards/arm/stm32/stm32f3discovery/README.txt b/boards/arm/stm32/stm32f3discovery/README.txt
index 0fc7ba02de..6440634b16 100644
--- a/boards/arm/stm32/stm32f3discovery/README.txt
+++ b/boards/arm/stm32/stm32f3discovery/README.txt
@@ -356,7 +356,7 @@ STM32F3Discovery-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
 Configurations
diff --git a/boards/arm/stm32/stm32f429i-disco/README.txt b/boards/arm/stm32/stm32f429i-disco/README.txt
index fb64b791a5..3dc19d168c 100644
--- a/boards/arm/stm32/stm32f429i-disco/README.txt
+++ b/boards/arm/stm32/stm32f429i-disco/README.txt
@@ -558,7 +558,7 @@ STM32F429I-DISCO-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
   STM32F429I-DISCO DMA Configuration
diff --git a/boards/arm/stm32/stm32f4discovery/README.txt b/boards/arm/stm32/stm32f4discovery/README.txt
index 7c4428046b..09b47f1b5f 100644
--- a/boards/arm/stm32/stm32f4discovery/README.txt
+++ b/boards/arm/stm32/stm32f4discovery/README.txt
@@ -971,7 +971,7 @@ STM32F4Discovery-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
   STM32F4Discovery DMA Configuration
diff --git a/boards/arm/stm32/stm32f4discovery/configs/audio/defconfig b/boards/arm/stm32/stm32f4discovery/configs/audio/defconfig
index c8c63305f0..a3d4f64b27 100644
--- a/boards/arm/stm32/stm32f4discovery/configs/audio/defconfig
+++ b/boards/arm/stm32/stm32f4discovery/configs/audio/defconfig
@@ -65,7 +65,6 @@ CONFIG_STM32_OTGFS_SOFINTR=y
 CONFIG_STM32_PWR=y
 CONFIG_STM32_SPI1=y
 CONFIG_STM32_SPI3=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_USART2=y
 CONFIG_STM32_USBHOST=y
 CONFIG_SYSTEM_NSH=y
diff --git a/boards/arm/stm32/stm32f4discovery/configs/wifi/defconfig b/boards/arm/stm32/stm32f4discovery/configs/wifi/defconfig
index 8d23b40d5a..c3de9320ca 100644
--- a/boards/arm/stm32/stm32f4discovery/configs/wifi/defconfig
+++ b/boards/arm/stm32/stm32f4discovery/configs/wifi/defconfig
@@ -89,7 +89,6 @@ CONFIG_STM32_SPI2=y
 CONFIG_STM32_SPI2_DMA=y
 CONFIG_STM32_SPI3=y
 CONFIG_STM32_SPI3_DMA=y
-CONFIG_STM32_SPI_DMA=y
 CONFIG_STM32_USART2=y
 CONFIG_SYMTAB_ORDEREDBYNAME=y
 CONFIG_SYSTEM_DHCPC_RENEW=y
diff --git a/boards/arm/stm32/stm32ldiscovery/README.txt b/boards/arm/stm32/stm32ldiscovery/README.txt
index cddaea555d..0330730d7d 100644
--- a/boards/arm/stm32/stm32ldiscovery/README.txt
+++ b/boards/arm/stm32/stm32ldiscovery/README.txt
@@ -470,7 +470,7 @@ STM32L-Discovery-specific Configuration Options
     CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
 
 Configurations
diff --git a/boards/arm/stm32f7/nucleo-144/README.txt b/boards/arm/stm32f7/nucleo-144/README.txt
index 98a48aac5d..551d5ef7a2 100644
--- a/boards/arm/stm32f7/nucleo-144/README.txt
+++ b/boards/arm/stm32f7/nucleo-144/README.txt
@@ -471,7 +471,9 @@ SPI Test
     +CONFIG_STM32F7_SPI3=y
 
     +# CONFIG_STM32F7_SPI_INTERRUPTS is not set
-    +# CONFIG_STM32F7_SPI_DMA is not set
+    +# CONFIG_STM32F7_SPI1_DMA is not set
+    +# CONFIG_STM32F7_SPI2_DMA is not set
+    +# CONFIG_STM32F7_SPI3_DMA is not set
      # CONFIG_STM32F7_CUSTOM_CLOCKCONFIG is not set
 
     +CONFIG_NUCLEO_SPI_TEST=y
diff --git a/boards/arm/stm32f7/stm32f746g-disco/README.txt b/boards/arm/stm32f7/stm32f746g-disco/README.txt
index 2aac635d38..caf31dc99f 100644
--- a/boards/arm/stm32f7/stm32f746g-disco/README.txt
+++ b/boards/arm/stm32f7/stm32f746g-disco/README.txt
@@ -408,7 +408,7 @@ STM32F746G-DISCO-specific Configuration Options
     CONFIG_STM32F7_SPI_INTERRUPTS - Select to enable interrupt driven SPI
       support. Non-interrupt-driven, poll-waiting is recommended if the
       interrupt rate would be to high in the interrupt driven case.
-    CONFIG_STM32F7_SPI_DMA - Use DMA to improve SPI transfer performance.
+    CONFIG_STM32F7_SPIx_DMA - Use DMA to improve SPIx transfer performance.
       Cannot be used with CONFIG_STM32F7_SPI_INTERRUPT.
 
   STM32F746G-DISCO DMA Configuration


[incubator-nuttx] 01/10: stm32wl5/Kconfig: hide STM32WL5_SPI_DMA option and select it automatically

Posted by pk...@apache.org.
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 cb94579ab7e1d7e5a096608e58e711b8fa9ebbb2
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 19:34:29 2022 +0200

    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"


[incubator-nuttx] 02/10: stm32h7/Kconfig: hide STM32H7_SPI_DMA option and select it automatically

Posted by pk...@apache.org.
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 6aef19617bca0fb148012501e3b33222479e5c5c
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 19:34:54 2022 +0200

    stm32h7/Kconfig: hide STM32H7_SPI_DMA option and select it automatically
---
 arch/arm/src/stm32h7/Kconfig | 40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

diff --git a/arch/arm/src/stm32h7/Kconfig b/arch/arm/src/stm32h7/Kconfig
index 0a4f3f2ff0..be53aa0032 100644
--- a/arch/arm/src/stm32h7/Kconfig
+++ b/arch/arm/src/stm32h7/Kconfig
@@ -443,6 +443,10 @@ config STM32H7_SPI
 	bool
 	default n
 
+config STM32H7_SPI_DMA
+	bool
+	default n
+
 config STM32H7_TIM
 	bool
 	default n
@@ -954,12 +958,6 @@ config STM32H7_SPI_INTERRUPTS
 		poll-waiting is recommended if the interrupt rate would be to high in
 		the interrupt driven case.
 
-config STM32H7_SPI_DMA
-	bool "SPI DMA"
-	default n
-	---help---
-		Use DMA to improve SPI transfer performance.  Cannot be used with STM32H7_SPI_INTERRUPT.
-
 config STM32H7_SPI_DMATHRESHOLD
 	int "SPI DMA threshold"
 	default 4
@@ -972,9 +970,10 @@ config STM32H7_SPI_DMATHRESHOLD
 config STM32H7_SPI1_DMA
 	bool "SPI1 DMA"
 	default n
-	depends on STM32H7_SPI1 && STM32H7_SPI_DMA
+	depends on STM32H7_SPI1 && !STM32H7_SPI_INTERRUPT
+	select STM32H7_SPI_DMA
 	---help---
-		Use DMA to improve SPI1 transfer performance.
+		Use DMA to improve SPI1 transfer performance.  Cannot be used with STM32H7_SPI_INTERRUPT
 
 config STM32H7_SPI1_DMA_BUFFER
 	int "SPI1 DMA buffer size"
@@ -994,9 +993,10 @@ config STM32H7_SPI1_COMMTYPE
 config STM32H7_SPI2_DMA
 	bool "SPI2 DMA"
 	default n
-	depends on STM32H7_SPI2 && STM32H7_SPI_DMA
+	depends on STM32H7_SPI2 && !STM32H7_SPI_INTERRUPT
+	select STM32H7_SPI_DMA
 	---help---
-		Use DMA to improve SPI2 transfer performance.
+		Use DMA to improve SPI2 transfer performance.  Cannot be used with STM32H7_SPI_INTERRUPT
 
 config STM32H7_SPI2_DMA_BUFFER
 	int "SPI2 DMA buffer size"
@@ -1016,9 +1016,10 @@ config STM32H7_SPI2_COMMTYPE
 config STM32H7_SPI3_DMA
 	bool "SPI3 DMA"
 	default n
-	depends on STM32H7_SPI3 && STM32H7_SPI_DMA
+	depends on STM32H7_SPI3 && !STM32H7_SPI_INTERRUPT
+	select STM32H7_SPI_DMA
 	---help---
-		Use DMA to improve SPI3 transfer performance.
+		Use DMA to improve SPI3 transfer performance.  Cannot be used with STM32H7_SPI_INTERRUPT
 
 config STM32H7_SPI3_DMA_BUFFER
 	int "SPI3 DMA buffer size"
@@ -1038,9 +1039,10 @@ config STM32H7_SPI3_COMMTYPE
 config STM32H7_SPI4_DMA
 	bool "SPI4 DMA"
 	default n
-	depends on STM32H7_SPI4 && STM32H7_SPI_DMA
+	depends on STM32H7_SPI4 && !STM32H7_SPI_INTERRUPT
+	select STM32H7_SPI_DMA
 	---help---
-		Use DMA to improve SPI4 transfer performance.
+		Use DMA to improve SPI4 transfer performance.  Cannot be used with STM32H7_SPI_INTERRUPT
 
 config STM32H7_SPI4_DMA_BUFFER
 	int "SPI4 DMA buffer size"
@@ -1060,9 +1062,10 @@ config STM32H7_SPI4_COMMTYPE
 config STM32H7_SPI5_DMA
 	bool "SPI5 DMA"
 	default n
-	depends on STM32H7_SPI5 && STM32H7_SPI_DMA
+	depends on STM32H7_SPI5 && !STM32H7_SPI_INTERRUPT
+	select STM32H7_SPI_DMA
 	---help---
-		Use DMA to improve SPI5 transfer performance.
+		Use DMA to improve SPI5 transfer performance.  Cannot be used with STM32H7_SPI_INTERRUPT
 
 config STM32H7_SPI5_DMA_BUFFER
 	int "SPI5 DMA buffer size"
@@ -1082,9 +1085,10 @@ config STM32H7_SPI5_COMMTYPE
 config STM32H7_SPI6_DMA
 	bool "SPI6 DMA"
 	default n
-	depends on STM32H7_SPI6 && STM32H7_SPI_DMA
+	depends on STM32H7_SPI6 && !STM32H7_SPI_INTERRUPT
+	select STM32H7_SPI_DMA
 	---help---
-		Use DMA to improve SPI6 transfer performance.
+		Use DMA to improve SPI6 transfer performance.  Cannot be used with STM32H7_SPI_INTERRUPT
 
 config STM32H7_SPI6_DMA_BUFFER
 	int "SPI6 DMA buffer size"


[incubator-nuttx] 10/10: stm32/Kconfig: stm32_i2s needs SPI_DMA enabled

Posted by pk...@apache.org.
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 8e5e6ab8cb284e7724609b561c43426dd137a99e
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 21:20:17 2022 +0200

    stm32/Kconfig: stm32_i2s needs SPI_DMA enabled
---
 arch/arm/src/stm32/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig
index f6c22034ba..83226454e6 100644
--- a/arch/arm/src/stm32/Kconfig
+++ b/arch/arm/src/stm32/Kconfig
@@ -3406,6 +3406,11 @@ config STM32_SPI_DMA
 	bool
 	default n
 
+config STM32_I2S
+	bool
+	default n
+	select STM32_SPI_DMA
+
 config STM32_I2C
 	bool
 	default n


[incubator-nuttx] 03/10: stm32f7/Kconfig: hide STM32F7_SPI_DMA option and select it automatically

Posted by pk...@apache.org.
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 1616edbb81004b327c1ac41e916d8f97fa4fa60d
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 19:35:21 2022 +0200

    stm32f7/Kconfig: hide STM32F7_SPI_DMA option and select it automatically
---
 arch/arm/src/stm32f7/Kconfig | 40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

diff --git a/arch/arm/src/stm32f7/Kconfig b/arch/arm/src/stm32f7/Kconfig
index 95be4a470f..9686698d4b 100644
--- a/arch/arm/src/stm32f7/Kconfig
+++ b/arch/arm/src/stm32f7/Kconfig
@@ -1257,6 +1257,10 @@ config STM32F7_SPI
 	bool
 	default n
 
+config STM32F7_SPI_DMA
+	bool
+	default n
+
 config STM32F7_TIM
 	bool
 	default n
@@ -2278,12 +2282,6 @@ config STM32F7_SPI_INTERRUPTS
 		poll-waiting is recommended if the interrupt rate would be to high in
 		the interrupt driven case.
 
-config STM32F7_SPI_DMA
-	bool "SPI DMA"
-	default n
-	---help---
-		Use DMA to improve SPI transfer performance.  Cannot be used with STM32F7_SPI_INTERRUPT.
-
 config STM32F7_SPI_DMATHRESHOLD
 	int "SPI DMA threshold"
 	default 4
@@ -2296,9 +2294,10 @@ config STM32F7_SPI_DMATHRESHOLD
 config STM32F7_SPI1_DMA
 	bool "SPI1 DMA"
 	default n
-	depends on STM32F7_SPI1 && STM32F7_SPI_DMA
+	depends on STM32F7_SPI1 && !STM32F7_SPI_INTERRUPT
+	select STM32F7_SPI_DMA
 	---help---
-		Use DMA to improve SPI1 transfer performance.
+		Use DMA to improve SPI1 transfer performance.  Cannot be used with STM32F7_SPI_INTERRUPT.
 
 config STM32F7_SPI1_DMA_BUFFER
 	int "SPI1 DMA buffer size"
@@ -2310,9 +2309,10 @@ config STM32F7_SPI1_DMA_BUFFER
 config STM32F7_SPI2_DMA
 	bool "SPI2 DMA"
 	default n
-	depends on STM32F7_SPI2 && STM32F7_SPI_DMA
+	depends on STM32F7_SPI2 && !STM32F7_SPI_INTERRUPT
+	select STM32F7_SPI_DMA
 	---help---
-		Use DMA to improve SPI2 transfer performance.
+		Use DMA to improve SPI2 transfer performance.  Cannot be used with STM32F7_SPI_INTERRUPT.
 
 config STM32F7_SPI2_DMA_BUFFER
 	int "SPI2 DMA buffer size"
@@ -2324,9 +2324,10 @@ config STM32F7_SPI2_DMA_BUFFER
 config STM32F7_SPI3_DMA
 	bool "SPI3 DMA"
 	default n
-	depends on STM32F7_SPI3 && STM32F7_SPI_DMA
+	depends on STM32F7_SPI3 && !STM32F7_SPI_INTERRUPT
+	select STM32F7_SPI_DMA
 	---help---
-		Use DMA to improve SPI3 transfer performance.
+		Use DMA to improve SPI3 transfer performance.  Cannot be used with STM32F7_SPI_INTERRUPT.
 
 config STM32F7_SPI3_DMA_BUFFER
 	int "SPI3 DMA buffer size"
@@ -2338,9 +2339,10 @@ config STM32F7_SPI3_DMA_BUFFER
 config STM32F7_SPI4_DMA
 	bool "SPI4 DMA"
 	default n
-	depends on STM32F7_SPI4 && STM32F7_SPI_DMA
+	depends on STM32F7_SPI4 && !STM32F7_SPI_INTERRUPT
+	select STM32F7_SPI_DMA
 	---help---
-		Use DMA to improve SPI4 transfer performance.
+		Use DMA to improve SPI4 transfer performance.  Cannot be used with STM32F7_SPI_INTERRUPT.
 
 config STM32F7_SPI4_DMA_BUFFER
 	int "SPI4 DMA buffer size"
@@ -2352,9 +2354,10 @@ config STM32F7_SPI4_DMA_BUFFER
 config STM32F7_SPI5_DMA
 	bool "SPI5 DMA"
 	default n
-	depends on STM32F7_SPI5 && STM32F7_SPI_DMA
+	depends on STM32F7_SPI5 && !STM32F7_SPI_INTERRUPT
+	select STM32F7_SPI_DMA
 	---help---
-		Use DMA to improve SPI5 transfer performance.
+		Use DMA to improve SPI5 transfer performance.  Cannot be used with STM32F7_SPI_INTERRUPT.
 
 config STM32F7_SPI5_DMA_BUFFER
 	int "SPI5 DMA buffer size"
@@ -2366,9 +2369,10 @@ config STM32F7_SPI5_DMA_BUFFER
 config STM32F7_SPI6_DMA
 	bool "SPI6 DMA"
 	default n
-	depends on STM32F7_SPI6 && STM32F7_SPI_DMA
+	depends on STM32F7_SPI6 && !STM32F7_SPI_INTERRUPT
+	select STM32F7_SPI_DMA
 	---help---
-		Use DMA to improve SPI6 transfer performance.
+		Use DMA to improve SPI6 transfer performance.  Cannot be used with STM32F7_SPI_INTERRUPT.
 
 config STM32F7_SPI6_DMA_BUFFER
 	int "SPI6 DMA buffer size"


[incubator-nuttx] 06/10: stm32f0l0g0/Kconfig: remove the duplicated SPI DMA section

Posted by pk...@apache.org.
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 1b4598252109b1a65448de4a399f0be316df8278
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 19:39:48 2022 +0200

    stm32f0l0g0/Kconfig: remove the duplicated SPI DMA section
---
 arch/arm/src/stm32f0l0g0/Kconfig | 46 ++++++++++++++--------------------------
 1 file changed, 16 insertions(+), 30 deletions(-)

diff --git a/arch/arm/src/stm32f0l0g0/Kconfig b/arch/arm/src/stm32f0l0g0/Kconfig
index 3e391c1baf..6e7fa4b0fc 100644
--- a/arch/arm/src/stm32f0l0g0/Kconfig
+++ b/arch/arm/src/stm32f0l0g0/Kconfig
@@ -1272,36 +1272,6 @@ config STM32F0L0G0_SPI2
 	select SPI
 	select STM32F0L0G0_SPI
 
-config STM32F0L0G0_SPI1_DMA
-	bool "SPI1 DMA"
-	default n
-	depends on STM32F0L0G0_SPI1 && STM32F0L0G0_SPI_DMA
-	---help---
-		Use DMA to improve SPI1 transfer performance.
-
-config STM32F0L0G0_SPI2_DMA
-	bool "SPI2 DMA"
-	default n
-	depends on STM32F0L0G0_SPI2 && STM32F0L0G0_SPI_DMA
-	---help---
-		Use DMA to improve SPI2 transfer performance.
-
-config STM32F0L0G0_SPI1_COMMTYPE
-	int "SPI1 Operation mode"
-	default 0
-	range 0 3
-	depends on STM32F0L0G0_SPI1
-	---help---
-		Select full-duplex (0), simplex tx (1), simplex rx (2) or half-duplex (3)
-
-config STM32F0L0G0_SPI2_COMMTYPE
-	int "SPI2 Operation mode"
-	default 0
-	range 0 3
-	depends on STM32F0L0G0_SPI2
-	---help---
-		Select full-duplex (0), simplex tx (1), simplex rx (2) or half-duplex (3)
-
 config STM32F0L0G0_SYSCFG
 	bool "SYSCFG"
 	default y
@@ -2737,6 +2707,22 @@ config STM32F0L0G0_SPI2_DMA
 	---help---
 		Use DMA to improve SPI2 transfer performance.
 
+config STM32F0L0G0_SPI1_COMMTYPE
+	int "SPI1 Operation mode"
+	default 0
+	range 0 3
+	depends on STM32F0L0G0_SPI1
+	---help---
+		Select full-duplex (0), simplex tx (1), simplex rx (2) or half-duplex (3)
+
+config STM32F0L0G0_SPI2_COMMTYPE
+	int "SPI2 Operation mode"
+	default 0
+	range 0 3
+	depends on STM32F0L0G0_SPI2
+	---help---
+		Select full-duplex (0), simplex tx (1), simplex rx (2) or half-duplex (3)
+
 endmenu # SPI Configuration
 
 menu "I2C Configuration"


[incubator-nuttx] 08/10: stm32f0l0g0/Kconfig: set default n for hidden options

Posted by pk...@apache.org.
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 a8e7f7742c6827e11a5028569a37e63afe3d6d67
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 19:41:23 2022 +0200

    stm32f0l0g0/Kconfig: set default n for hidden options
---
 arch/arm/src/stm32f0l0g0/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/src/stm32f0l0g0/Kconfig b/arch/arm/src/stm32f0l0g0/Kconfig
index c4721953e9..7b3013d217 100644
--- a/arch/arm/src/stm32f0l0g0/Kconfig
+++ b/arch/arm/src/stm32f0l0g0/Kconfig
@@ -1407,15 +1407,19 @@ endmenu
 
 config STM32F0L0G0_COMP
 	bool
+	default n
 
 config STM32F0L0G0_ADC
 	bool
+	default n
 
 config STM32F0L0G0_DAC
 	bool
+	default n
 
 config STM32F0L0G0_DMA
 	bool
+	default n
 
 config STM32F0L0G0_SPI
 	bool
@@ -1426,24 +1430,31 @@ config STM32F0L0G0_SPI_DMA
 
 config STM32F0L0G0_I2C
 	bool
+	default n
 
 config STM32F0L0G0_CAN
 	bool
+	default n
 
 config STM32F0L0G0_PWM
 	bool
+	default n
 
 config STM32F0L0G0_USART
 	bool
+	default n
 
 config STM32F0L0G0_TIM
 	bool
+	default n
 
 config STM32F0L0G0_SERIALDRIVER
 	bool
+	default n
 
 config STM32F0L0G0_1WIREDRIVER
 	bool
+	default n
 
 menu "Timer Configuration"
 


[incubator-nuttx] 04/10: stm32/Kconfig: hide STM32_SPI_DMA option and select it automatically

Posted by pk...@apache.org.
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 12273d0aa91b86be59a5f7a158403f058174ea0b
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 19:37:20 2022 +0200

    stm32/Kconfig: hide STM32_SPI_DMA option and select it automatically
---
 arch/arm/src/stm32/Kconfig | 40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig
index df1e139865..63ea0163e1 100644
--- a/arch/arm/src/stm32/Kconfig
+++ b/arch/arm/src/stm32/Kconfig
@@ -3396,6 +3396,10 @@ config STM32_DMAMUX
 config STM32_SPI
 	bool
 
+config STM32_SPI_DMA
+	bool
+	default n
+
 config STM32_I2C
 	bool
 
@@ -10396,18 +10400,13 @@ config STM32_SPI_INTERRUPTS
 		poll-waiting is recommended if the interrupt rate would be to high in
 		the interrupt driven case.
 
-config STM32_SPI_DMA
-	bool "SPI DMA"
-	default n
-	---help---
-		Use DMA to improve SPI transfer performance.  Cannot be used with STM32_SPI_INTERRUPT.
-
 config STM32_SPI1_DMA
 	bool "SPI1 DMA"
 	default n
-	depends on STM32_SPI1 && STM32_SPI_DMA
+	depends on STM32_SPI1 && !STM32_SPI_INTERRUPT
+	select STM32_SPI_DMA
 	---help---
-		Use DMA to improve SPI1 transfer performance.
+		Use DMA to improve SPI1 transfer performance.  Cannot be used with STM32_SPI_INTERRUPT.
 
 config STM32_SPI1_DMA_BUFFER
 	int "SPI1 DMA buffer size"
@@ -10428,9 +10427,10 @@ config STM32_SPI_DMATHRESHOLD
 config STM32_SPI2_DMA
 	bool "SPI2 DMA"
 	default n
-	depends on STM32_SPI2 && STM32_SPI_DMA
+	depends on STM32_SPI2 && !STM32_SPI_INTERRUPT
+	select STM32_SPI_DMA
 	---help---
-		Use DMA to improve SPI2 transfer performance.
+		Use DMA to improve SPI2 transfer performance.  Cannot be used with STM32_SPI_INTERRUPT.
 
 config STM32_SPI2_DMA_BUFFER
 	int "SPI2 DMA buffer size"
@@ -10442,9 +10442,10 @@ config STM32_SPI2_DMA_BUFFER
 config STM32_SPI3_DMA
 	bool "SPI3 DMA"
 	default n
-	depends on STM32_SPI3 && STM32_SPI_DMA
+	depends on STM32_SPI3 && !STM32_SPI_INTERRUPT
+	select STM32_SPI_DMA
 	---help---
-		Use DMA to improve SPI3 transfer performance.
+		Use DMA to improve SPI3 transfer performance.  Cannot be used with STM32_SPI_INTERRUPT.
 
 config STM32_SPI3_DMA_BUFFER
 	int "SPI3 DMA buffer size"
@@ -10456,9 +10457,10 @@ config STM32_SPI3_DMA_BUFFER
 config STM32_SPI4_DMA
 	bool "SPI4 DMA"
 	default n
-	depends on STM32_SPI4 && STM32_SPI_DMA
+	depends on STM32_SPI4 && !STM32_SPI_INTERRUPT
+	select STM32_SPI_DMA
 	---help---
-		Use DMA to improve SPI4 transfer performance.
+		Use DMA to improve SPI4 transfer performance.  Cannot be used with STM32_SPI_INTERRUPT.
 
 config STM32_SPI4_DMA_BUFFER
 	int "SPI4 DMA buffer size"
@@ -10470,9 +10472,10 @@ config STM32_SPI4_DMA_BUFFER
 config STM32_SPI5_DMA
 	bool "SPI5 DMA"
 	default n
-	depends on STM32_SPI5 && STM32_SPI_DMA
+	depends on STM32_SPI5 && !STM32_SPI_INTERRUPT
+	select STM32_SPI_DMA
 	---help---
-		Use DMA to improve SPI5 transfer performance.
+		Use DMA to improve SPI5 transfer performance.  Cannot be used with STM32_SPI_INTERRUPT.
 
 config STM32_SPI5_DMA_BUFFER
 	int "SPI5 DMA buffer size"
@@ -10484,9 +10487,10 @@ config STM32_SPI5_DMA_BUFFER
 config STM32_SPI6_DMA
 	bool "SPI6 DMA"
 	default n
-	depends on STM32_SPI6 && STM32_SPI_DMA
+	depends on STM32_SPI6 && !STM32_SPI_INTERRUPT
+	select STM32_SPI_DMA
 	---help---
-		Use DMA to improve SPI6 transfer performance.
+		Use DMA to improve SPI6 transfer performance.  Cannot be used with STM32_SPI_INTERRUPT.
 
 config STM32_SPI5_DMA_BUFFER
 	int "SPI5 DMA buffer size"


[incubator-nuttx] 05/10: stm32/Kconfig: set default n for hidden options

Posted by pk...@apache.org.
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 e39afbf277adcd975b663e9db31aa97a94ecdd59
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Jul 15 19:38:32 2022 +0200

    stm32/Kconfig: set default n for hidden options
---
 arch/arm/src/stm32/Kconfig | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig
index 63ea0163e1..f6c22034ba 100644
--- a/arch/arm/src/stm32/Kconfig
+++ b/arch/arm/src/stm32/Kconfig
@@ -3380,21 +3380,27 @@ endmenu
 
 config STM32_ADC
 	bool
+	default n
 
 config STM32_SDADC
 	bool
+	default n
 
 config STM32_DAC
 	bool
+	default n
 
 config STM32_DMA
 	bool
+	default n
 
 config STM32_DMAMUX
 	bool
+	default n
 
 config STM32_SPI
 	bool
+	default n
 
 config STM32_SPI_DMA
 	bool
@@ -3402,12 +3408,15 @@ config STM32_SPI_DMA
 
 config STM32_I2C
 	bool
+	default n
 
 config STM32_CAN
 	bool
+	default n
 
 config STM32_FDCAN
 	bool
+	default n
 
 config STM32_TIM
 	bool


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

Posted by pk...@apache.org.
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"