2013-01-08 22:40:58 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Split("""
|
2024-08-24 06:15:09 +08:00
|
|
|
dev_i2c_core.c
|
|
|
|
dev_i2c_dev.c
|
2013-01-08 22:40:58 +08:00
|
|
|
""")
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_I2C_BITOPS'):
|
2024-08-24 06:15:09 +08:00
|
|
|
src = src + ['dev_i2c_bit_ops.c']
|
2023-10-17 23:24:32 +08:00
|
|
|
if GetDepend('RT_USING_SOFT_I2C'):
|
2024-08-24 06:15:09 +08:00
|
|
|
src = src + ['dev_soft_i2c.c']
|
2024-04-07 21:57:38 +08:00
|
|
|
if GetDepend(['RT_USING_DM']):
|
2024-08-24 06:15:09 +08:00
|
|
|
src += ['dev_i2c_bus.c', 'dev_i2c_dm.c']
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
|
|
path = [cwd + '/../include']
|
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_I2C'], CPPPATH = path)
|
|
|
|
|
|
|
|
Return('group')
|