X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftimer_qt.c;h=6f96da646984ce5e69c53e7c135669fd9d3c6f35;hb=2535cb94ec2183791128f8bbd109ca69a960cf78;hp=9b7a289c64f73fc638a07cb62e8554480baa7abf;hpb=bcf38f772b397e7a8ba781a69aacb9380e54b32a;p=bertos.git diff --git a/drv/timer_qt.c b/drv/timer_qt.c old mode 100755 new mode 100644 index 9b7a289c..6f96da64 --- a/drv/timer_qt.c +++ b/drv/timer_qt.c @@ -1,8 +1,33 @@ /** * \file * * * \version $Id$ @@ -11,26 +36,6 @@ * * \brief Low-level timer module for Qt emulator (implementation). */ - -/*#* - *#* $Log$ - *#* Revision 1.5 2006/07/19 12:56:26 bernie - *#* Convert to new Doxygen style. - *#* - *#* 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. - *#* - *#* Revision 1.1 2005/11/27 03:06:36 bernie - *#* Qt timer emulation. - *#* - *#*/ - #include /* hptime.t */ // Qt headers @@ -109,14 +114,16 @@ public slots: /// HW dependent timer initialization. -extern "C" static void timer_hw_init(void) +static void timer_hw_init(void) { // Kick EmulTimer initialization EmulTimer::instance().init(); } -extern "C" INLINE hptime_t timer_hw_hpread(void) +INLINE hptime_t timer_hw_hpread(void) { return EmulTimer::instance().hpread(); } +/** Not needed, timer IRQ handler called only for timer source */ +#define timer_hw_triggered() (true)