mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-05 21:41:43 +00:00
* [DM][LED] Fixup LED check status string match * [DM][LED] Update LED blink cycle to heartbeat * [DM][LED] Fixup gpio-led memory alloc to zero * [DM][LED] Update LED common drivers
25 lines
449 B
Python
25 lines
449 B
Python
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_USING_DM', 'RT_USING_LED']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
src = ['led.c']
|
|
|
|
if GetDepend(['RT_LED_GPIO']):
|
|
src += ['led-gpio.c']
|
|
|
|
if GetDepend(['RT_LED_PWM']):
|
|
src += ['led-pwm.c']
|
|
|
|
if GetDepend(['RT_LED_SYSCON']):
|
|
src += ['led-syscon.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|