2018-10-29 09:49:12 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
group = []
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_PM']):
|
|
|
|
src = src + ['pm.c']
|
2021-12-05 09:07:23 +08:00
|
|
|
src = src + ['lptimer.c']
|
2018-10-29 09:49:12 +08:00
|
|
|
|
|
|
|
if len(src):
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|