diff options
| author | bernard.xiong <[email protected]> | 2009-12-25 12:18:53 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-12-25 12:18:53 +0000 |
| commit | 51e2d9137851a879eb4c8816269fca3ac98c526e (patch) | |
| tree | c6eb83a45b7f75558ca517699f3cc5a3008972c1 /src/timer.c | |
| parent | 6cd35a87c36c37e666f7ae535153e0265c8eeceb (diff) | |
add license and copyright info
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@226 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/timer.c')
| -rw-r--r-- | src/timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timer.c b/src/timer.c index 285a971520..a8e1f9b479 100644 --- a/src/timer.c +++ b/src/timer.c @@ -1,7 +1,7 @@ /* * File : timer.c * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at @@ -420,12 +420,12 @@ static struct rt_thread timer_thread; static rt_uint8_t timer_thread_stack[RT_TIMER_THREAD_STACK_SIZE]; static struct rt_semaphore timer_sem; -static rt_uint16_t timer_ex_cnt; +static rt_uint16_t timer_ex_cnt; void rt_soft_timer_tick_increase (void) { timer_ex_cnt++; - if (timer_ex_cnt >= (RT_TICK_PER_SECOND / RT_TIMER_EX_TICKS_PER_SEC)) + if (timer_ex_cnt >= (RT_TICK_PER_SECOND / RT_TIMER_TICK_PER_SECOND)) { timer_ex_cnt = 0; rt_sem_release(&timer_sem); |
