summaryrefslogtreecommitdiff
path: root/components/drivers/i2c
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/i2c
parentedfc7d62010729b9f82dc6f61855a51df0347566 (diff)
[device] add dev_ prefix for file names
Diffstat (limited to 'components/drivers/i2c')
-rw-r--r--components/drivers/i2c/SConscript10
-rw-r--r--components/drivers/i2c/dev_i2c_bit_ops.c (renamed from components/drivers/i2c/i2c-bit-ops.c)0
-rw-r--r--components/drivers/i2c/dev_i2c_bus.c (renamed from components/drivers/i2c/i2c_bus.c)2
-rw-r--r--components/drivers/i2c/dev_i2c_core.c (renamed from components/drivers/i2c/i2c_core.c)0
-rw-r--r--components/drivers/i2c/dev_i2c_dev.c (renamed from components/drivers/i2c/i2c_dev.c)0
-rw-r--r--components/drivers/i2c/dev_i2c_dm.c (renamed from components/drivers/i2c/i2c_dm.c)2
-rw-r--r--components/drivers/i2c/dev_soft_i2c.c (renamed from components/drivers/i2c/soft_i2c.c)0
7 files changed, 7 insertions, 7 deletions
diff --git a/components/drivers/i2c/SConscript b/components/drivers/i2c/SConscript
index 3685e44e2d..269c6f54ba 100644
--- a/components/drivers/i2c/SConscript
+++ b/components/drivers/i2c/SConscript
@@ -3,16 +3,16 @@ from building import *
cwd = GetCurrentDir()
src = Split("""
-i2c_core.c
-i2c_dev.c
+dev_i2c_core.c
+dev_i2c_dev.c
""")
if GetDepend('RT_USING_I2C_BITOPS'):
- src = src + ['i2c-bit-ops.c']
+ src = src + ['dev_i2c_bit_ops.c']
if GetDepend('RT_USING_SOFT_I2C'):
- src = src + ['soft_i2c.c']
+ src = src + ['dev_soft_i2c.c']
if GetDepend(['RT_USING_DM']):
- src += ['i2c_bus.c', 'i2c_dm.c']
+ src += ['dev_i2c_bus.c', 'dev_i2c_dm.c']
# The set of source files associated with this SConscript file.
path = [cwd + '/../include']
diff --git a/components/drivers/i2c/i2c-bit-ops.c b/components/drivers/i2c/dev_i2c_bit_ops.c
index 005cf9035e..005cf9035e 100644
--- a/components/drivers/i2c/i2c-bit-ops.c
+++ b/components/drivers/i2c/dev_i2c_bit_ops.c
diff --git a/components/drivers/i2c/i2c_bus.c b/components/drivers/i2c/dev_i2c_bus.c
index e9626cadd7..8a52471504 100644
--- a/components/drivers/i2c/i2c_bus.c
+++ b/components/drivers/i2c/dev_i2c_bus.c
@@ -10,7 +10,7 @@
#include <rtdevice.h>
-#define DBG_TAG "i2c.bus"
+#define DBG_TAG "dev.i2c.bus"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
diff --git a/components/drivers/i2c/i2c_core.c b/components/drivers/i2c/dev_i2c_core.c
index 2b8e58c90c..2b8e58c90c 100644
--- a/components/drivers/i2c/i2c_core.c
+++ b/components/drivers/i2c/dev_i2c_core.c
diff --git a/components/drivers/i2c/i2c_dev.c b/components/drivers/i2c/dev_i2c_dev.c
index 96110b9e7d..96110b9e7d 100644
--- a/components/drivers/i2c/i2c_dev.c
+++ b/components/drivers/i2c/dev_i2c_dev.c
diff --git a/components/drivers/i2c/i2c_dm.c b/components/drivers/i2c/dev_i2c_dm.c
index 95b1fe63ab..5701dd580b 100644
--- a/components/drivers/i2c/i2c_dm.c
+++ b/components/drivers/i2c/dev_i2c_dm.c
@@ -10,7 +10,7 @@
#include <rtdevice.h>
-#define DBG_TAG "i2c.dm"
+#define DBG_TAG "dev.i2c.dm"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
diff --git a/components/drivers/i2c/soft_i2c.c b/components/drivers/i2c/dev_soft_i2c.c
index 54c7395121..54c7395121 100644
--- a/components/drivers/i2c/soft_i2c.c
+++ b/components/drivers/i2c/dev_soft_i2c.c