stm32/Kconfig: hide STM32_SPI_DMA option and select it automatically
This commit is contained in:
parent
1616edbb81
commit
12273d0aa9
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user