Files
rt-thread/bsp/k230/drivers/utest/SConscript
Chuan ae2a5758bc bsp: k230: add spi driver
Requirement: The BSP for the k230 platform in the RT-Thread repository does not yet have an spi driver.

Solution: Provide spi driver for the k230 platform in the RT-Thread repository.

- Supports SPI0(OSPI) controller with 1/2/4/8 data lines.
- Supports SPI1(QSPI0) and SPI2(QSPI1) controllers with 1/2/4 data lines.
- Implements DMA-based transfers for OSPI, QSPI, and DSPI modes.
- Falls back to standard IRQ-driven transfers for legacy SPI mode (single line).
- Updates documentation in bsp/README.md

Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-16 11:37:32 +08:00

41 lines
865 B
Python

from building import *
src = []
if GetDepend('BSP_UTEST_DRIVERS'):
src += ['test_gpio.c']
src += ['test_gpio_irq.c']
if GetDepend('BSP_USING_ADC'):
src += ['test_adc.c']
if GetDepend('BSP_USING_TIMERS'):
src += ['test_timer.c']
if GetDepend('BSP_USING_WDT'):
src += ['test_wdt.c']
if GetDepend('BSP_USING_PWM'):
src += ['test_pwm.c']
if GetDepend('BSP_USING_PDMA'):
src += ['test_pdma.c']
if GetDepend('BSP_USING_TS'):
src += ['test_ts.c']
if GetDepend('BSP_USING_UART'):
src += ['test_uart.c']
if GetDepend('BSP_USING_RTC'):
src += ['test_rtc.c']
if GetDepend('BSP_USING_I2C'):
src += ['test_i2c.c']
if GetDepend('BSP_USING_SPI'):
src += ['test_spi.c']
group = DefineGroup('utestcases', src, depend = [''])
Return('group')