summaryrefslogtreecommitdiff
path: root/src/clock.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-03-08 23:09:40 +0000
committerbernard.xiong <[email protected]>2010-03-08 23:09:40 +0000
commit5e82a9a02205e053c281ac19b93ed896d2c88a5c (patch)
tree1a997e0963d20943864f278983881d7871f22ee0 /src/clock.c
parent1c9c3bf175bf949014f3815c4eeb99d17c967c5f (diff)
remove rt_passed_second in clock; init device driver when driver has been opened if it is not in activate status; change interrupt nest count to rt_uint8_t; add rt_console_set_device function in kservice.c (rt_kprintf function can use device right now)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@464 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/clock.c')
-rw-r--r--src/clock.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/clock.c b/src/clock.c
index 0b91dbcfc6..4f785dd5b9 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -11,13 +11,13 @@
* Date Author Notes
* 2006-03-12 Bernard first version
* 2006-05-27 Bernard add support for same priority thread schedule
- * 2006-08-10 Bernard remove the last rt_schedule in rt_tick_increase
+ * 2006-08-10 Bernard remove the last rt_schedule in rt_tick_increase
+ * 2010-03-08 Bernard remove rt_passed_second
*/
#include <rtthread.h>
static rt_tick_t rt_tick;
-static rt_time_t rt_passed_second;
extern void rt_timer_check(void);
@@ -29,7 +29,6 @@ extern void rt_timer_check(void);
void rt_system_tick_init()
{
rt_tick = 0;
- rt_passed_second = 0;
}
/**
@@ -60,11 +59,6 @@ void rt_tick_increase()
/* increase the global tick */
++ rt_tick;
- if (rt_tick % RT_TICK_PER_SECOND == 0)
- {
- ++rt_passed_second;
- }
-
/* check timer */
rt_timer_check();