diff options
| author | prife <[email protected]> | 2013-02-27 00:37:57 +0800 |
|---|---|---|
| committer | prife <[email protected]> | 2013-02-27 00:37:57 +0800 |
| commit | a64ec10e68cbc17db2aaf736205cda2ada45ac65 (patch) | |
| tree | 161c30f2da7bd289b104a86d5393a3263817c3eb /bsp/simulator/applications | |
| parent | 242574a36ff05d6d109c09144b6f7fab8c88c407 (diff) | |
app module support for simlator, first version
Diffstat (limited to 'bsp/simulator/applications')
| -rw-r--r-- | bsp/simulator/applications/SConscript | 2 | ||||
| -rw-r--r-- | bsp/simulator/applications/dfs_win32.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bsp/simulator/applications/SConscript b/bsp/simulator/applications/SConscript index 828b49f77f..6dbd985812 100644 --- a/bsp/simulator/applications/SConscript +++ b/bsp/simulator/applications/SConscript @@ -6,6 +6,8 @@ src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_DFS_WINSHAREDIR') == False: SrcRemove(src, 'dfs_win32.c') +if GetDepend('RT_USING_MODULE') == False: + SrcRemove(src, ['module_win32.c']) CPPPATH = [cwd, str(Dir('#'))] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/simulator/applications/dfs_win32.c b/bsp/simulator/applications/dfs_win32.c index acc8a3cb0a..8601df7239 100644 --- a/bsp/simulator/applications/dfs_win32.c +++ b/bsp/simulator/applications/dfs_win32.c @@ -148,6 +148,14 @@ static char *winpath_dirdup(char *des, const char *src) return path; } +/* This function can convert the path in rt-thread/dfs to the path in windows */ +char * dfs_win32_dirdup(char * path) +{ + char * file_path; + file_path = winpath_dirdup(WIN32_DIRDISK_ROOT, path); + return file_path; +} + static int dfs_win32_open(struct dfs_fd *file) { int fd; |
