You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
459 B
15 lines
459 B
5 days ago
|
from building import *
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
CPPPATH = [cwd + '/../include']
|
||
|
group = []
|
||
|
if GetDepend(['RT_USING_SERIAL']):
|
||
|
if GetDepend(['RT_USING_SERIAL_V2']):
|
||
|
src = Glob('serial_v2.c')
|
||
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SERIAL_V2'], CPPPATH = CPPPATH)
|
||
|
else:
|
||
|
src = Glob('serial.c')
|
||
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SERIAL'], CPPPATH = CPPPATH)
|
||
|
|
||
|
Return('group')
|