2010-04-07 17:10:24 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
|
2010-04-13 01:37:37 +08:00
|
|
|
static int a = 0;
|
|
|
|
int b = 1000000;
|
|
|
|
|
|
|
|
void function(int count1, int count2)
|
2010-04-07 17:10:24 +08:00
|
|
|
{
|
2010-04-13 01:37:37 +08:00
|
|
|
rt_kprintf("Hello RT-Thread %d %d\n", count1, count2);
|
|
|
|
}
|
|
|
|
|
|
|
|
int rtm_main(void)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
for(i=0; i<1000; i++)
|
|
|
|
{
|
|
|
|
a++;
|
|
|
|
b--;
|
|
|
|
function(a, b);
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
2010-04-07 17:10:24 +08:00
|
|
|
}
|