a881c05e58
* ch569w-evt : add spi master driver, SPI0 tested * Update bsp/wch/risc-v/ch569w-evt/board/Kconfig * Update bsp/wch/risc-v/ch569w-evt/board/Kconfig Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
32 lines
576 B
Python
32 lines
576 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Split("""
|
|
ch56x_sys.c
|
|
swi_gcc.S
|
|
""")
|
|
|
|
if GetDepend('SOC_SERIES_CH569'):
|
|
src += ['ch56x_pfic.c']
|
|
if GetDepend('RT_USING_WDT'):
|
|
src += ['ch56x_wdt.c']
|
|
|
|
if GetDepend('RT_USING_HWTIMER'):
|
|
src += ['ch56x_timer.c']
|
|
|
|
if GetDepend('RT_USING_SPI'):
|
|
src += ['ch56x_spi.c']
|
|
|
|
if GetDepend('RT_USING_PIN'):
|
|
src += ['ch56x_gpio.c']
|
|
|
|
if GetDepend(['RT_USING_SERIAL', 'BSP_USING_UART']):
|
|
src += ['ch56x_uart.c']
|
|
|
|
path = [cwd]
|
|
|
|
group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path)
|
|
|
|
Return('group')
|