stm32wl5/Kconfig: hide STM32WL5_SPI_DMA option and select it automatically
This commit is contained in:
parent
3c0a3dabfc
commit
cb94579ab7
@ -152,6 +152,11 @@ config STM32WL5_USART
|
|||||||
|
|
||||||
config STM32WL5_SPI
|
config STM32WL5_SPI
|
||||||
bool
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config STM32WL5_SPI_DMA
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
# These are the peripheral selections proper
|
# 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
|
poll-waiting is recommended if the interrupt rate would be to high in
|
||||||
the interrupt driven case.
|
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
|
config STM32WL5_SPI1_DMA
|
||||||
bool "SPI1 DMA"
|
bool "SPI1 DMA"
|
||||||
default n
|
default n
|
||||||
depends on STM32WL5_SPI1 && STM32WL5_SPI_DMA
|
depends on STM32WL5_SPI1 && !STM32WL5_SPI_INTERRUPT
|
||||||
|
select STM32WL5_SPI_DMA
|
||||||
---help---
|
---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
|
config STM32WL5_SPI1_DMA_BUFFER
|
||||||
int "SPI1 DMA buffer size"
|
int "SPI1 DMA buffer size"
|
||||||
@ -286,9 +286,10 @@ config STM32WL5_SPI_DMATHRESHOLD
|
|||||||
config STM32WL5_SPI2S2_DMA
|
config STM32WL5_SPI2S2_DMA
|
||||||
bool "SPI2S2 DMA"
|
bool "SPI2S2 DMA"
|
||||||
default n
|
default n
|
||||||
depends on STM32WL5_SPI2S2 && STM32WL5_SPI_DMA
|
depends on STM32WL5_SPI2 && !STM32WL5_SPI_INTERRUPT
|
||||||
|
select STM32WL5_SPI_DMA
|
||||||
---help---
|
---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
|
config STM32WL5_SPI2S2_DMA_BUFFER
|
||||||
int "SPI2S2 DMA buffer size"
|
int "SPI2S2 DMA buffer size"
|
||||||
|
Loading…
Reference in New Issue
Block a user