summaryrefslogtreecommitdiff
path: root/components/drivers/i2c/SConscript
blob: 5e85a645a7c3e14011a1931f0e68b2bc0ae5cf4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 + '/../include']

group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_I2C'], CPPPATH = path)

Return('group')