X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftimer_qt.c;h=5ca081fcf27f5d6003f718c3fc0b113e627cab2f;hb=0d93a13a8cf12124906cfd7e734c37179f2b823e;hp=a11e9ca665147b0cfa76389b257e6a1ebfc6dde3;hpb=20d3c79024c12bb366270c0c1fdda53c4c55e734;p=bertos.git diff --git a/drv/timer_qt.c b/drv/timer_qt.c index a11e9ca6..5ca081fc 100755 --- a/drv/timer_qt.c +++ b/drv/timer_qt.c @@ -14,6 +14,12 @@ /*#* *#* $Log$ + *#* Revision 1.4 2006/05/28 12:17:57 bernie + *#* Drop almost all the Qt3 cruft. + *#* + *#* Revision 1.3 2006/02/21 21:28:02 bernie + *#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms. + *#* *#* Revision 1.2 2006/02/20 02:01:35 bernie *#* Port to Qt 4.1. *#* @@ -25,13 +31,8 @@ #include /* hptime.t */ // Qt headers -#if _QT < 4 - #include - #include -#else - #include - #include -#endif +#include +#include // The user interrupt server routine @@ -78,9 +79,9 @@ public: // Record initial time system_time.start(); - // Activate 1ms timer interrupt + // Activate timer interrupt timer.connect(&timer, SIGNAL(timeout()), this, SLOT(timerInterrupt())); - timer.start(1); + timer.start(1000 / TIMER_TICKS_PER_SEC); initialized = true; }