summaryrefslogtreecommitdiff
path: root/components/module/examples/application
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-05-29 15:27:27 +0000
committerqiuyiuestc <[email protected]>2010-05-29 15:27:27 +0000
commit25e7ea1745a02f3673f025ca209d10e248b45e6b (patch)
treef3ed8551c2c26140e15e4f0b3e0d57f337e6153e /components/module/examples/application
parent0c5f6cd9b06c93dc128a696f641f757c66425826 (diff)
module developing, application can be run successfully
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@747 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/module/examples/application')
-rw-r--r--components/module/examples/application/basicapp/SConscript2
-rw-r--r--components/module/examples/application/basicapp/module_entry.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/components/module/examples/application/basicapp/SConscript b/components/module/examples/application/basicapp/SConscript
index e8f79a5fd9..286381b6bc 100644
--- a/components/module/examples/application/basicapp/SConscript
+++ b/components/module/examples/application/basicapp/SConscript
@@ -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)
diff --git a/components/module/examples/application/basicapp/module_entry.c b/components/module/examples/application/basicapp/module_entry.c
index 1b523da100..ad3fb698c7 100644
--- a/components/module/examples/application/basicapp/module_entry.c
+++ b/components/module/examples/application/basicapp/module_entry.c
@@ -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;