summaryrefslogtreecommitdiff
path: root/components/drivers/led/SConscript
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-11-27 13:42:45 +0800
committerRbb666 <[email protected]>2024-11-28 09:46:02 +0800
commit175a7d26bf904e037f1abb9a06435deedd8b6483 (patch)
treedf58ffd09d94ff65aeea12e3640cf6c16d5255d4 /components/drivers/led/SConscript
parentd3820ed77e26759c3a3d29dad65bbcca371374c6 (diff)
[DM/FEATURE] Support LED
Provides general LED control API and drivers. It can work on PWM, GPIO and Syscon... Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/led/SConscript')
-rw-r--r--components/drivers/led/SConscript15
1 files changed, 15 insertions, 0 deletions
diff --git a/components/drivers/led/SConscript b/components/drivers/led/SConscript
new file mode 100644
index 0000000000..915772d78b
--- /dev/null
+++ b/components/drivers/led/SConscript
@@ -0,0 +1,15 @@
+from building import *
+
+group = []
+
+if not GetDepend(['RT_USING_DM', 'RT_USING_LED']):
+ Return('group')
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd + '/../include']
+
+src = ['led.c']
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')