diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/module/examples/application/basicapp/SConscript | 2 | ||||
| -rw-r--r-- | components/module/examples/application/basicapp/module_entry.c | 7 |
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;
|
