mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user