diff options
| author | Rbb666 <[email protected]> | 2025-02-08 13:15:30 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-02-09 15:48:49 +0800 |
| commit | d83d71cc057a32927a8156616339b776fa72af3f (patch) | |
| tree | ceeec4dea3ec283a6cc5a3a8c9967ed13720e8d9 /components/drivers/spi | |
| parent | 6e3c9acd3907baad0fe7669d998b8748709b04f5 (diff) | |
[drivers/spi]统一软件SPI配置
Diffstat (limited to 'components/drivers/spi')
| -rw-r--r-- | components/drivers/spi/Kconfig | 19 | ||||
| -rw-r--r-- | components/drivers/spi/SConscript | 4 |
2 files changed, 7 insertions, 16 deletions
diff --git a/components/drivers/spi/Kconfig b/components/drivers/spi/Kconfig index f2fbd7edad..4b95a18bfe 100644 --- a/components/drivers/spi/Kconfig +++ b/components/drivers/spi/Kconfig @@ -3,22 +3,11 @@ config RT_USING_SPI default n if RT_USING_SPI - config RT_USING_SPI_BITOPS - select RT_USING_PIN - bool "Use GPIO to simulate SPI" - default n - - if RT_USING_SPI_BITOPS - config RT_SPI_BITOPS_DEBUG - bool "Use simulate SPI debug message" - default n - endif menuconfig RT_USING_SOFT_SPI - bool "Use GPIO to soft simulate SPI" + bool "Use GPIO to simulate SPI" default n select RT_USING_PIN - select RT_USING_SPI_BITOPS if RT_USING_SOFT_SPI menuconfig RT_USING_SOFT_SPI0 bool "Enable SPI0 Bus (software simulation)" @@ -188,9 +177,13 @@ config RT_USING_SPI range 0 32767 default 1 endif - endif + config RT_SPI_BITOPS_DEBUG + bool "Use simulate SPI debug message" + depends on RT_USING_SOFT_SPI + default n + config RT_USING_QSPI bool "Enable QSPI mode" default n diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index fc608c46ae..df0ffb7141 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -7,10 +7,8 @@ src = ['dev_spi_core.c', 'dev_spi.c'] CPPPATH = [cwd, cwd + '/../include'] LOCAL_CFLAGS = '' -if GetDepend('RT_USING_SPI_BITOPS'): - src += ['dev_spi_bit_ops.c'] - if GetDepend('RT_USING_SOFT_SPI'): + src += ['dev_spi_bit_ops.c'] src += ['dev_soft_spi.c'] if GetDepend('RT_USING_QSPI'): |
