diff options
| author | usualtreee <[email protected]> | 2026-11-05 11:18:32 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-11-05 11:18:32 +0800 |
| commit | bd991539318e1e065cd830a209f15c731e64142d (patch) | |
| tree | 0432a5c0a111e87350243433c2134df524dfc66e /components/drivers/i2c/SConscript | |
| parent | 54862ee1e8ff5eb9a197a3230bd04e45132f519d (diff) | |
[utest][i2c] 增加 I2C 框架模拟总线测试 (#11982)
覆盖消息转发、10 位地址、错误传播、锁释放和收发返回值。
Diffstat (limited to 'components/drivers/i2c/SConscript')
| -rw-r--r-- | components/drivers/i2c/SConscript | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/drivers/i2c/SConscript b/components/drivers/i2c/SConscript index 269c6f54ba..b0daeb8aa0 100644 --- a/components/drivers/i2c/SConscript +++ b/components/drivers/i2c/SConscript @@ -1,5 +1,6 @@ Import('RTT_ROOT') from building import * +import os cwd = GetCurrentDir() src = Split(""" @@ -19,4 +20,9 @@ path = [cwd + '/../include'] group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_I2C'], CPPPATH = path) +list = os.listdir(cwd) +for item in list: + if os.path.isfile(os.path.join(cwd, item, 'SConscript')): + group = group + SConscript(os.path.join(item, 'SConscript')) + Return('group') |
