From 25e7ea1745a02f3673f025ca209d10e248b45e6b Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Sat, 29 May 2010 15:27:27 +0000 Subject: module developing, application can be run successfully git-svn-id: https://rt-thread.googlecode.com/svn/trunk@747 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/module/examples/application/basicapp/module_entry.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'components/module/examples/application/basicapp/module_entry.c') 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 #include -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; -- cgit v1.3.1