summaryrefslogtreecommitdiff
path: root/components/drivers/i2c/SConscript
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-05-22 17:32:32 +0000
committer[email protected] <[email protected]>2012-05-22 17:32:32 +0000
commit55460652d39a6e60562bd318f35b757d4bf41d5c (patch)
tree72af5d0bf988e6d49472a8a9f79d7fc2b938db26 /components/drivers/i2c/SConscript
parentc891da75df38fb5e1071bb2b20efde9b856d7dbf (diff)
ADD I2C driver framework and I2C gpio driver
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2128 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/i2c/SConscript')
-rw-r--r--components/drivers/i2c/SConscript18
1 files changed, 18 insertions, 0 deletions
diff --git a/components/drivers/i2c/SConscript b/components/drivers/i2c/SConscript
new file mode 100644
index 0000000000..7a1d5dfe01
--- /dev/null
+++ b/components/drivers/i2c/SConscript
@@ -0,0 +1,18 @@
+Import('RTT_ROOT')
+from building import *
+
+cwd = GetCurrentDir()
+src = Split("""
+i2c_core.c
+i2c_dev.c
+""")
+
+if GetDepend('RT_USING_I2C_BITOPS'):
+ src = src + ['i2c-bit-ops.c']
+
+# The set of source files associated with this SConscript file.
+path = [cwd]
+
+group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_I2C'], CPPPATH = path)
+
+Return('group')