summaryrefslogtreecommitdiff
path: root/components/drivers/rtc
diff options
context:
space:
mode:
authorCXSforHPU <[email protected]>2024-08-24 06:15:09 +0800
committerGitHub <[email protected]>2024-08-23 18:15:09 -0400
commit416ec66380d89e2d3ff8ea37fd748ccc77130ab2 (patch)
tree2eff3fc5d03da82f0672a3f500f487ebdc6a60df /components/drivers/rtc
parentedfc7d62010729b9f82dc6f61855a51df0347566 (diff)
[device] add dev_ prefix for file names
Diffstat (limited to 'components/drivers/rtc')
-rw-r--r--components/drivers/rtc/SConscript6
-rw-r--r--components/drivers/rtc/dev_alarm.c (renamed from components/drivers/rtc/alarm.c)0
-rw-r--r--components/drivers/rtc/dev_rtc.c (renamed from components/drivers/rtc/rtc.c)2
-rw-r--r--components/drivers/rtc/dev_soft_rtc.c (renamed from components/drivers/rtc/soft_rtc.c)0
4 files changed, 4 insertions, 4 deletions
diff --git a/components/drivers/rtc/SConscript b/components/drivers/rtc/SConscript
index fe0d5e9db3..f1e180fffe 100644
--- a/components/drivers/rtc/SConscript
+++ b/components/drivers/rtc/SConscript
@@ -7,11 +7,11 @@ CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_RTC']):
- src = src + ['rtc.c']
+ src = src + ['dev_rtc.c']
if GetDepend(['RT_USING_ALARM']):
- src = src + ['alarm.c']
+ src = src + ['dev_alarm.c']
if GetDepend(['RT_USING_SOFT_RTC']):
- src = src + ['soft_rtc.c']
+ src = src + ['dev_soft_rtc.c']
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
diff --git a/components/drivers/rtc/alarm.c b/components/drivers/rtc/dev_alarm.c
index b78528a04c..b78528a04c 100644
--- a/components/drivers/rtc/alarm.c
+++ b/components/drivers/rtc/dev_alarm.c
diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/dev_rtc.c
index 4f4fbc61b0..f789036628 100644
--- a/components/drivers/rtc/rtc.c
+++ b/components/drivers/rtc/dev_rtc.c
@@ -17,7 +17,7 @@
#include <string.h>
#include <stdlib.h>
#include <rtthread.h>
-#include <drivers/rtc.h>
+#include <drivers/dev_rtc.h>
#ifdef RT_USING_RTC
diff --git a/components/drivers/rtc/soft_rtc.c b/components/drivers/rtc/dev_soft_rtc.c
index 0eab72ebe5..0eab72ebe5 100644
--- a/components/drivers/rtc/soft_rtc.c
+++ b/components/drivers/rtc/dev_soft_rtc.c