1from building import *
2
3cwd = GetCurrentDir()
4
5# add the general drivers.
6src = Split("""
7board.c
8MCUX_Config/board/clock_config.c
9MCUX_Config/board/pin_mux.c
10""")
11
12if GetDepend(['BSP_USING_SPI6_SAMPLE']):
13    src += Glob('ports/spi_sample.c')
14
15if GetDepend(['BSP_USING_RW007']):
16    src += Glob('ports/drv_spi_sample_rw007.c')
17
18if GetDepend(['RT_USING_SFUD']):
19    src += Glob('ports/drv_filesystem_spi_flash.c')
20
21
22CPPPATH = [cwd, cwd + '/MCUX_Config/board']
23CPPDEFINES = ['DEBUG', 'CPU_MCXN236VDF']
24
25group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
26
27Return('group')
28