summaryrefslogtreecommitdiff
path: root/components/drivers/include/rtdevice.h
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/include/rtdevice.h
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/include/rtdevice.h')
-rw-r--r--components/drivers/include/rtdevice.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h
index 2e1860e00c..fd51ea7db4 100644
--- a/components/drivers/include/rtdevice.h
+++ b/components/drivers/include/rtdevice.h
@@ -51,6 +51,10 @@ extern "C" {
#endif /* RT_ATA_AHCI */
#endif /* RT_USING_ATA */
+#ifdef RT_USING_LED
+#include "drivers/led.h"
+#endif
+
#ifdef RT_USING_MBOX
#include "drivers/mailbox.h"
#endif /* RT_USING_MBOX */