4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-24 14:17:22 +08:00
andeyqi 053373c3ac
adapter frdm-mcxn236 iar project (#9083)
* adapter frdm-mcxn236 iar project

* formate MCXN236 bsp
2024-06-25 01:33:30 +08:00

28 lines
612 B
Python

from building import *
cwd = GetCurrentDir()
# add the general drivers.
src = Split("""
board.c
MCUX_Config/board/clock_config.c
MCUX_Config/board/pin_mux.c
""")
if GetDepend(['BSP_USING_SPI6_SAMPLE']):
src += Glob('ports/spi_sample.c')
if GetDepend(['BSP_USING_RW007']):
src += Glob('ports/drv_spi_sample_rw007.c')
if GetDepend(['RT_USING_SFUD']):
src += Glob('ports/drv_filesystem_spi_flash.c')
CPPPATH = [cwd, cwd + '/MCUX_Config/board']
CPPDEFINES = ['DEBUG', 'CPU_MCXN236VDF']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group')