1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import os import rtconfig from building import * Import('SDK_LIB') cwd = GetCurrentDir() # add general drivers src = Split(''' system_ch32f20x.c board.c ''') path = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) Return('group')