add timer_control example.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@543 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-03-25 15:16:34 +00:00
parent a08d9637b6
commit 474d3b8056
3 changed files with 93 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ static void timeout1(void* parameter)
void timer_stop_self_init()
{
/* 创建定时器1 */
timer1 = rt_timer_stop_self("timer1", /* 定时器名字是 timer1 */
timer1 = rt_timer_create("timer1", /* 定时器名字是 timer1 */
timeout1, /* 超时时回调的处理函数 */
RT_NULL, /* 超时函数的入口参数 */
10, /* 定时长度,以OS Tick为单位,即10个OS Tick */