2023-08-30 16:21:18 +08:00
|
|
|
Import('AIC_ROOT')
|
|
|
|
|
Import('PRJ_KERNEL')
|
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
CPPPATH = []
|
|
|
|
|
src = []
|
|
|
|
|
if GetDepend('AIC_QSPI_DRV_TEST') and GetDepend('RT_USING_FINSH'):
|
2023-11-09 20:19:51 +08:00
|
|
|
src = Glob('test_qspidev.c')
|
|
|
|
|
src += Glob('test_spibit.c')
|
2024-10-30 16:50:31 +08:00
|
|
|
src += Glob('test_spi.c')
|
2024-04-03 16:40:57 +08:00
|
|
|
src += Glob('test_spi_async.c')
|
2024-06-04 19:00:30 +08:00
|
|
|
if GetDepend('AIC_QSPI_DRV_V11') and GetDepend('AIC_CHIP_D13X'):
|
2023-11-09 20:19:51 +08:00
|
|
|
src += Glob('test_spislave*.c')
|
2023-08-30 16:21:18 +08:00
|
|
|
|
2025-10-21 13:59:50 +08:00
|
|
|
if GetDepend('AIC_EXAMPLE') and GetDepend('RT_USING_FINSH'):
|
|
|
|
|
src += Glob('test_spiflash_dev_example.c')
|
|
|
|
|
src += Glob('spi_dev_example.c')
|
|
|
|
|
src += Glob('qspi_dev_example.c')
|
|
|
|
|
|
2023-08-30 16:21:18 +08:00
|
|
|
group = DefineGroup('test-qspi', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
|
|
Return('group')
|