diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-25 09:34:25 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-25 09:34:25 +0000 |
commit | 902470d1c542735b989a727355744a974af43de4 (patch) | |
tree | 3b467b808f7323438f8a7625e02da3536dc52d62 /src/chinit.c | |
parent | 8317685beb67ed9341bc83d03153580b816f452e (diff) | |
download | ChibiOS-902470d1c542735b989a727355744a974af43de4.tar.gz ChibiOS-902470d1c542735b989a727355744a974af43de4.tar.bz2 ChibiOS-902470d1c542735b989a727355744a974af43de4.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@481 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chinit.c')
-rw-r--r-- | src/chinit.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/chinit.c b/src/chinit.c index 5d46808d8..d93ac1581 100644 --- a/src/chinit.c +++ b/src/chinit.c @@ -37,9 +37,7 @@ void chSysInit(void) { chSchInit(); chDbgInit(); -#ifdef CH_USE_VIRTUAL_TIMERS chVTInit(); -#endif #ifdef CH_USE_HEAP chHeapInit(); #endif @@ -69,19 +67,14 @@ void chSysInit(void) { * together with the \p CH_TIME_QUANTUM macro, the round robin interval. */ void chSysTimerHandlerI(void) { + #ifdef CH_USE_ROUNDROBIN /* running thread has not used up quantum yet? */ if (rlist.r_preempt > 0) /* decrement remaining quantum */ rlist.r_preempt--; #endif -#ifdef CH_USE_SYSTEMTIME - rlist.r_stime++; -#endif - -#ifdef CH_USE_VIRTUAL_TIMERS chVTDoTickI(); -#endif } /** @} */ |