module developing, application can be run successfully

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@747 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc committed 2010-05-29 15:27:27 +00:00
1 parent 0c5f6cd9b0
commit 25e7ea1745
6 files changed
+22 -18

No files matched your search

@@ -11,7 +11,7 @@ group['CCFLAGS'] = ''
group['CPPPATH'] = [RTT_ROOT + '/components/module/interface']
group['CPPDEFINES'] = ''
target = 'hello.mo'
target = 'basicapp.mo'
# add group to project list
projects.append(group)
@@ -1,14 +1,17 @@
#include <rtthread.h>
#include <interface_help.h>
extern int rt_application_entry();
extern int rt_application_entry(void);
rt_shell_t ishell = RT_NULL;
int rt_module_entry(const void* shell, void** object_info)
{
/* init shell */
ishell = (rt_shell_t)shell;
struct rt_module_info *info = (struct rt_module_info*)rt_malloc(sizeof(struct rt_module_info));
rt_kprintf("module entry\n");
struct rt_module_info *info = (struct rt_module_info*)
rt_malloc(sizeof(struct rt_module_info));
info->module_refs = 0;
info->module_type = RT_Module_Class_APP;