SConscript 700 B

12345678910111213141516171819202122232425262728293031323334353637
  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_USB_DEVICE'):
  12. src += ['ch56x_usbd.c']
  13. if GetDepend('RT_USING_PWM'):
  14. src += ['ch56x_pwm.c']
  15. if GetDepend('RT_USING_HWTIMER'):
  16. src += ['ch56x_timer.c']
  17. if GetDepend('RT_USING_SPI'):
  18. src += ['ch56x_spi.c']
  19. if GetDepend('RT_USING_PIN'):
  20. src += ['ch56x_gpio.c']
  21. if GetDepend(['RT_USING_SERIAL', 'BSP_USING_UART']):
  22. src += ['ch56x_uart.c']
  23. path = [cwd]
  24. group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path)
  25. Return('group')