diff options
| author | qiuyiuestc <[email protected]> | 2010-05-29 14:19:56 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-05-29 14:19:56 +0000 |
| commit | 8b8dba661f5e29e1592cc9df92ef219099809330 (patch) | |
| tree | 31451ddff2d979d338cc0e9fc25b74bda5117632 /components/module/examples/application/basicapp/basicapp.c | |
| parent | 1fb4d848370a33e176b2a3bf7fb532e7ed8e7823 (diff) | |
module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@742 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/module/examples/application/basicapp/basicapp.c')
| -rw-r--r-- | components/module/examples/application/basicapp/basicapp.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/components/module/examples/application/basicapp/basicapp.c b/components/module/examples/application/basicapp/basicapp.c new file mode 100644 index 0000000000..90d39f1427 --- /dev/null +++ b/components/module/examples/application/basicapp/basicapp.c @@ -0,0 +1,26 @@ +#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; +} + |
