mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 08:39:23 +08:00
cbfb87fac1
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@614 bbd45198-f89e-11dd-88c7-29a3b14d5316
23 lines
264 B
C
23 lines
264 B
C
#include <rtthread.h>
|
|
|
|
static int a = 0;
|
|
int b = 1000000;
|
|
|
|
void function(int count1, int count2)
|
|
{
|
|
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;
|
|
}
|