summaryrefslogtreecommitdiff
path: root/components/drivers/regulator/SConscript
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-11-26 13:32:30 +0800
committerRbb666 <[email protected]>2024-11-27 18:02:23 +0800
commit56614a4cb94018a9dee257be4dfd9b69fd18cc46 (patch)
tree2add7a0ad0b69eb1d151e7ba0c2594ab336f9e05 /components/drivers/regulator/SConscript
parente5bc2dbdc636488802e0c367b88a6af869983e27 (diff)
[DM/FEATURE] Support regulator
1. Add the regulator driver framework. 2. Add the generic voltage and current regulator API support for drivers. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/regulator/SConscript')
-rwxr-xr-xcomponents/drivers/regulator/SConscript15
1 files changed, 15 insertions, 0 deletions
diff --git a/components/drivers/regulator/SConscript b/components/drivers/regulator/SConscript
new file mode 100755
index 0000000000..b5ae8e9fdc
--- /dev/null
+++ b/components/drivers/regulator/SConscript
@@ -0,0 +1,15 @@
+from building import *
+
+group = []
+
+if not GetDepend(['RT_USING_REGULATOR']):
+ Return('group')
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd + '/../include']
+
+src = ['regulator.c', 'regulator_dm.c']
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')