stm32wl5/Kconfig: hide STM32WL5_SPI_DMA option and select it automatically

This commit is contained in:
raiden00pl 2022-07-15 19:34:29 +02:00 committed by Petro Karashchenko
parent 3c0a3dabfc
commit cb94579ab7
1 changed files with 11 additions and 10 deletions

View File

@ -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"