2024-11-27 13:42:45 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
group = []
|
|
|
|
|
|
|
|
if not GetDepend(['RT_USING_DM', 'RT_USING_LED']):
|
|
|
|
Return('group')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
|
|
|
|
src = ['led.c']
|
|
|
|
|
2024-11-27 13:44:23 +08:00
|
|
|
if GetDepend(['RT_LED_GPIO']):
|
|
|
|
src += ['led-gpio.c']
|
|
|
|
|
2024-11-27 13:42:45 +08:00
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|