summaryrefslogtreecommitdiff
path: root/components/module/examples/application/basicapp/module_entry.c
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/basicapp/module_entry.c
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/basicapp/module_entry.c')
-rw-r--r--components/module/examples/application/basicapp/module_entry.c7
1 files changed, 5 insertions, 2 deletions
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;