-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CXSforHPU/adapt
更改头文件位置,引出初始化函数,添加scons 脚本
- Loading branch information
Showing
3 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from building import * | ||
Import('rtconfig') | ||
|
||
src = [] | ||
cwd = GetCurrentDir() | ||
|
||
src += Glob('sensor_st_sths34pf80.c.c') | ||
src += Glob('libraries/sths34pf80_reg.c') | ||
src += Glob('libraries/sths34pf80.c') | ||
|
||
# add sths34pf80 include path. | ||
path = [cwd, cwd + '/libraries'] | ||
|
||
# add src and include to group. | ||
group = DefineGroup('sths34pf80', src, depend = ['PKG_USING_STHS34PF80'], CPPPATH = path) | ||
|
||
Return('group') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters