diff options
| author | bernard.xiong <[email protected]> | 2010-03-25 15:16:34 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-03-25 15:16:34 +0000 |
| commit | 474d3b805660b260739702089be2e99a26f6d12b (patch) | |
| tree | a760a0609fa552735807fe56a50a5940aa5ef9d3 /examples/kernel/timer_stop_self.c | |
| parent | a08d9637b608c2f94925e2d304080026b771e7fb (diff) | |
add timer_control example.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@543 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/kernel/timer_stop_self.c')
| -rw-r--r-- | examples/kernel/timer_stop_self.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/kernel/timer_stop_self.c b/examples/kernel/timer_stop_self.c index 67d43a15ed..8a19637e52 100644 --- a/examples/kernel/timer_stop_self.c +++ b/examples/kernel/timer_stop_self.c @@ -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 */
|
