LPC2xxx: add timer support.
[bertos.git] / bertos / drv / timer.c
index 4ace035cdac9875ba5df10119a7892e34c70fac9..dfc27aefb53ccee74c8edaa141052e0b98010ee5 100644 (file)
@@ -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;
 }