From 17d026c6cc74f12dddf79690256331121124e2f3 Mon Sep 17 00:00:00 2001 From: Runcheng Lu Date: Mon, 29 Dec 2025 14:35:41 +0800 Subject: [fix] drivers: spi: refactor SPI bit operations into independent configuration - Add RT_USING_SPI_BITOPS as a separate configurable option - Make RT_USING_SOFT_SPI depend on RT_USING_SPI_BITOPS - Adjust build order in SConscript for proper com Signed-off-by: Runcheng Lu --- components/drivers/spi/SConscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components/drivers/spi/SConscript') diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index 94c78456dc..a48767cb25 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -7,8 +7,10 @@ src = ['dev_spi_core.c', 'dev_spi.c'] CPPPATH = [cwd, cwd + '/../include'] LOCAL_CFLAGS = '' -if GetDepend('RT_USING_SOFT_SPI'): +if GetDepend('RT_USING_SPI_BITOPS'): src += ['dev_spi_bit_ops.c'] + +if GetDepend('RT_USING_SOFT_SPI'): src += ['dev_soft_spi.c'] if GetDepend('RT_USING_QSPI'): -- cgit v1.3.1