From 13dd1668a6fc3be71fbd7dcc98a6d3d2cc6ddecc Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 31 Mar 2015 10:22:58 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7835 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chvt.h | 9 --------- os/rt/src/chvt.c | 20 -------------------- 2 files changed, 29 deletions(-) (limited to 'os/rt') diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h index c3457894f..b2118df07 100644 --- a/os/rt/include/chvt.h +++ b/os/rt/include/chvt.h @@ -481,10 +481,6 @@ static inline void chVTDoTickI(void) { chVTGetSystemTimeX() + 1), "out of time window"); -/* if (now > 21) { - __BKPT(0); - }*/ - /* Timers processing loop.*/ while (true) { systime_t now; @@ -534,11 +530,6 @@ static inline void chVTDoTickI(void) { if (delta < (systime_t)CH_CFG_ST_TIMEDELTA) { delta = (systime_t)CH_CFG_ST_TIMEDELTA; } - -// if (now + delta >= 23) { -// __BKPT(0); -// } - port_timer_set_alarm(now + delta); chDbgAssert((chVTGetSystemTimeX() - ch.vtlist.vt_lasttime) < delta, diff --git a/os/rt/src/chvt.c b/os/rt/src/chvt.c index 88e5a3068..9f52687ee 100644 --- a/os/rt/src/chvt.c +++ b/os/rt/src/chvt.c @@ -99,11 +99,6 @@ void chVTDoSetI(virtual_timer_t *vtp, systime_t delay, chDbgCheckClassI(); chDbgCheck((vtp != NULL) && (vtfunc != NULL) && (delay != TIME_IMMEDIATE)); -/* systime_t tm = chVTGetSystemTimeX(); - if (tm >= 23) { - __BKPT(0); - }*/ - vtp->vt_par = par; vtp->vt_func = vtfunc; p = ch.vtlist.vt_next; @@ -156,11 +151,6 @@ void chVTDoSetI(virtual_timer_t *vtp, systime_t delay, value in the header must be restored.*/; p->vt_delta -= delay; ch.vtlist.vt_delta = (systime_t)-1; - -/* systime_t tmx = chVTGetSystemTimeX(); - if (tmx >= 23) { - __BKPT(0); - }*/ } /** @@ -180,11 +170,6 @@ void chVTDoResetI(virtual_timer_t *vtp) { chDbgCheck(vtp != NULL); chDbgAssert(vtp->vt_func != NULL, "timer not set or already triggered"); -/* systime_t tm = chVTGetSystemTimeX(); - if (tm >= 23) { - __BKPT(0); - }*/ - /* Checking if the element to be removed was the first in the list.*/ #if CH_CFG_ST_TIMEDELTA > 0 first = ch.vtlist.vt_next; @@ -242,11 +227,6 @@ void chVTDoResetI(virtual_timer_t *vtp) { } port_timer_set_alarm(ch.vtlist.vt_lasttime + nowdelta + delta); - -/* systime_t tmx = chVTGetSystemTimeX(); - if (tmx >= 23) { - __BKPT(0); - }*/ } #endif /* CH_CFG_ST_TIMEDELTA > 0 */ } -- cgit v1.2.3