1import rtconfig 2from building import * 3 4# get current directory 5cwd = GetCurrentDir() 6 7# add the general drivers. 8src = Split(""" 9""") 10 11# The set of source files associated with this SConscript file. 12if GetDepend(['BSP_USING_USBD']): 13# src += ['src/ht32_usbd_core.c'] 14# src += ['src/ht32_usbd_int.c'] 15 src += ['src/usbd_code.c'] 16 src += ['src/usb_port.c'] 17 18path = [cwd + '/inc'] 19 20group = DefineGroup('usbd_library', src, depend = [''], CPPPATH = path) 21 22Return('group') 23