SConscript 406 B

12345678910111213141516171819202122
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. # add the general drivers.
  6. src = []
  7. if GetDepend(['RT_USING_PIN']):
  8. src += ['drv_gpio.c']
  9. if GetDepend(['RT_USING_SERIAL']):
  10. src += ['drv_uart.c']
  11. path = [cwd]
  12. path += [cwd + '/config',
  13. cwd + '/CMSIS/Include']
  14. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  15. Return('group')