X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fdrv%2Ftimer.c;h=d380e5f1d458de07e0342281cbc84a934c80fdb2;hb=f35b6066ecdeffcc8998dd566b5246bdcf43c548;hp=4ace035cdac9875ba5df10119a7892e34c70fac9;hpb=32d1445272120a254d77ce8d1af1f527da7a2c17;p=bertos.git diff --git a/bertos/drv/timer.c b/bertos/drv/timer.c index 4ace035c..d380e5f1 100644 --- a/bertos/drv/timer.c +++ b/bertos/drv/timer.c @@ -52,7 +52,7 @@ #include #include // cpu_relax() -#include // proc_decQuantun() +#include // proc_decQuantun() /* * Include platform-specific binding code if we're hosted. @@ -345,9 +345,6 @@ DEFINE_TIMER_ISR TIMER_STROBE_ON; - /* Perform hw IRQ handling */ - timer_hw_irq(); - /* Update the master ms counter */ ++_clock; @@ -358,6 +355,9 @@ DEFINE_TIMER_ISR timer_poll(&timers_queue); #endif + /* Perform hw IRQ handling */ + timer_hw_irq(); + TIMER_STROBE_OFF; }