summaryrefslogtreecommitdiff
path: root/components/module/examples/application
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-07-21 00:19:13 +0000
committerqiuyiuestc <[email protected]>2010-07-21 00:19:13 +0000
commit5b0e4dc40a2fada0d8c0a5858723b3df80efc5d0 (patch)
treedbab0656a7c2d3c2bee6409b93e587199040b741 /components/module/examples/application
parentf24c52e1b092fe6d50d9ba1e28fc5414f89c4e50 (diff)
reconstruct module
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@809 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/module/examples/application')
-rw-r--r--components/module/examples/application/basicapp/SConscript27
-rw-r--r--components/module/examples/application/basicapp/basicapp.c26
-rw-r--r--components/module/examples/application/basicapp/module_entry.c24
3 files changed, 0 insertions, 77 deletions
diff --git a/components/module/examples/application/basicapp/SConscript b/components/module/examples/application/basicapp/SConscript
deleted file mode 100644
index 286381b6bc..0000000000
--- a/components/module/examples/application/basicapp/SConscript
+++ /dev/null
@@ -1,27 +0,0 @@
-Import('env')
-Import('projects')
-Import('RTT_ROOT')
-Import('rtconfig')
-
-# group definitions
-group = {}
-group['name'] = 'examples'
-group['src'] = Glob('*.c')
-group['CCFLAGS'] = ''
-group['CPPPATH'] = [RTT_ROOT + '/components/module/interface']
-group['CPPDEFINES'] = ''
-
-target = 'basicapp.mo'
-
-# add group to project list
-projects.append(group)
-
-env.Append(CCFLAGS = group['CCFLAGS'])
-env.Append(CPPPATH = group['CPPPATH'])
-env.Append(CPPDEFINES = group['CPPDEFINES'])
-module_env = env.Clone(CPPDEFINE = 'RT_MODULE')
-module_env.Replace(LINKFLAGS = ' -mcpu=arm920t -r -d -e rt_module_entry -nostdlib -s')
-
-src_local = Glob('*.c')
-
-module_env.Program(target, src_local)
diff --git a/components/module/examples/application/basicapp/basicapp.c b/components/module/examples/application/basicapp/basicapp.c
deleted file mode 100644
index 90d39f1427..0000000000
--- a/components/module/examples/application/basicapp/basicapp.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <rtthread.h>
-#include <interface_help.h>
-
-int a = 0;
-int b = 1000000;
-int c = 0;
-
-void function(int count1, int count2, int count3)
-{
- rt_kprintf("Hello RT-Thread %d %d\n", count1, count2, count3);
-}
-
-int rt_application_entry(void)
-{
- int i;
- for(i=0; i<1000; i++)
- {
- a++;
- b--;
- c++;
- function(a, b, c);
- }
-
- return 0;
-}
-
diff --git a/components/module/examples/application/basicapp/module_entry.c b/components/module/examples/application/basicapp/module_entry.c
deleted file mode 100644
index ad3fb698c7..0000000000
--- a/components/module/examples/application/basicapp/module_entry.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <rtthread.h>
-#include <interface_help.h>
-
-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;
-
- 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;
- info->module_guid = 0xdead;
- info->exec_entry = (void *)rt_application_entry;
- info->module_interface = RT_NULL;
-
- *object_info = info;
-}
-