2010-05-29 22:19:56 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
int a = 0;
|
|
|
|
int b = 1000000;
|
|
|
|
int c = 0;
|
|
|
|
|
2010-07-21 08:19:13 +08:00
|
|
|
static void function(int count1, int count2, int count3)
|
2010-05-29 22:19:56 +08:00
|
|
|
{
|
|
|
|
rt_kprintf("Hello RT-Thread %d %d\n", count1, count2, count3);
|
|
|
|
}
|
|
|
|
|
|
|
|
int rt_application_entry(void)
|
|
|
|
{
|
|
|
|
int i;
|
2010-07-21 08:19:13 +08:00
|
|
|
rt_kprintf("application entry\n");
|
|
|
|
for(i=0; i<100; i++)
|
2010-05-29 22:19:56 +08:00
|
|
|
{
|
|
|
|
a++;
|
|
|
|
b--;
|
|
|
|
c++;
|
2010-07-21 08:19:13 +08:00
|
|
|
function(a, c, b );
|
2010-05-29 22:19:56 +08:00
|
|
|
}
|
2010-07-21 08:19:13 +08:00
|
|
|
|
2010-05-29 22:19:56 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|