SConscript 518 B

123456789101112131415161718192021222324
  1. import os
  2. import rtconfig
  3. from building import *
  4. Import('SDK_LIB')
  5. cwd = GetCurrentDir()
  6. # add general drivers
  7. src = Split('''
  8. board.c
  9. ''')
  10. path = [cwd]
  11. startup_path_prefix = SDK_LIB
  12. if rtconfig.CROSS_TOOL == 'keil':
  13. src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/ARM/startup_apm32f10x_hd.s']
  14. # You can select chips from the list above
  15. CPPDEFINES = ['APM32F103xE']
  16. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  17. Return('group')