summaryrefslogtreecommitdiff
path: root/components/module/examples/application/basicapp/basicapp.c
blob: 90d39f1427f3ae5841e20f167a81181381050f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
}