[DM/FEATURE] Support LED

Provides general LED control API and drivers.
It can work on PWM, GPIO and Syscon...

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI
2024-11-27 13:42:45 +08:00
committed by Rbb666
parent d3820ed77e
commit 175a7d26bf
6 changed files with 434 additions and 0 deletions

View File

@@ -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')