Skip to content

Commit 6fe526a

Browse files
committed
[DM/LED] Add GPIO LED driver
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 71e9a48 commit 6fe526a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

components/drivers/led/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ menuconfig RT_USING_LED
33
depends on RT_USING_DM
44
default n
55

6+
config RT_LED_GPIO
7+
bool "GPIO connected LEDs Support"
8+
depends on RT_USING_LED
9+
depends on RT_USING_PINCTRL
10+
depends on RT_USING_OFW
11+
default n
12+
613
if RT_USING_LED
714
osource "$(SOC_DM_LED_DIR)/Kconfig"
815
endif

components/drivers/led/SConscript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ CPPPATH = [cwd + '/../include']
1010

1111
src = ['led.c']
1212

13+
if GetDepend(['RT_LED_GPIO']):
14+
src += ['led-gpio.c']
15+
1316
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
1417

1518
Return('group')

0 commit comments

Comments
 (0)