SConscript 518 B

12345678910111213141516171819202122232425262728
  1. from building import *
  2. cwd = GetCurrentDir()
  3. src = Split("""
  4. ch56x_sys.c
  5. swi_gcc.S
  6. """)
  7. if GetDepend('SOC_SERIES_CH569'):
  8. src += ['ch56x_pfic.c']
  9. if GetDepend('RT_USING_WDT'):
  10. src += ['ch56x_wdt.c']
  11. if GetDepend('RT_USING_HWTIMER'):
  12. src += ['ch56x_timer.c']
  13. if GetDepend('RT_USING_PIN'):
  14. src += ['ch56x_gpio.c']
  15. if GetDepend(['RT_USING_SERIAL', 'BSP_USING_UART']):
  16. src += ['ch56x_uart.c']
  17. path = [cwd]
  18. group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path)
  19. Return('group')