X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftimer.c;h=e8508e047f18d3f767632eaf3809cd3bf5786ec0;hb=bce79ae17dc4b489639cd102fa7563acd129898f;hp=4ace035cdac9875ba5df10119a7892e34c70fac9;hpb=32d1445272120a254d77ce8d1af1f527da7a2c17;p=bertos.git diff --git a/bertos/drv/timer.c b/bertos/drv/timer.c index 4ace035c..e8508e04 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; }