update run_module.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@833 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc 2010-08-06 14:53:21 +00:00
parent 8510a938dd
commit 2df619d986
2 changed files with 2 additions and 6 deletions

View File

@ -11,8 +11,8 @@ group['CPPPATH'] = [RTT_ROOT + '/bsp/mini2440']
group['CPPDEFINES'] = [] group['CPPDEFINES'] = []
group['LINKFLAGS'] = '' group['LINKFLAGS'] = ''
src_bsp = ['application.c', 'startup.c', 'board.c', 'rtc_calendar.c', 'calibration.c', 'info.c', 'today.c', 'picture.c', 'osc.c', 'device_info.c', 'run_module.c'] src_bsp = ['application.c', 'startup.c', 'board.c', 'rtc_calendar.c', 'calibration.c']
src_drv = ['console.c', 'led.c'] src_drv = ['console.c', 'led.c', 'run_module.c']
if rtconfig.RT_USING_DFS: if rtconfig.RT_USING_DFS:
src_drv += ['sdcard.c'] src_drv += ['sdcard.c']

View File

@ -43,10 +43,6 @@ void run_module(const char* filename)
rt_kprintf("read %d bytes from file\n", length); rt_kprintf("read %d bytes from file\n", length);
module_name = strrchr(filename, '/'); module_name = strrchr(filename, '/');
module = rt_module_load((void *)buffer, ++module_name); module = rt_module_load((void *)buffer, ++module_name);
if(module != RT_NULL)
{
// rt_module_run(module);
}
close(fd); close(fd);
} }