bunt _ / PulseCounter

Files at this revision

API Documentation at this revision

Comitter:
geotec
Date:
Wed Jan 09 09:57:21 2013 +0000
Parent:
3:9e7474866e48
Commit message:
bugfix: capture interrupt enabled before start()

Changed in this revision

PulseCounter.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PulseCounter.cpp	Tue Jan 08 14:25:02 2013 +0000
+++ b/PulseCounter.cpp	Wed Jan 09 09:57:21 2013 +0000
@@ -50,7 +50,6 @@
     // Set custom method to be called on Timer2 interrupt
     NVIC_DisableIRQ(TIMER2_IRQn);
     NVIC_SetVector(TIMER2_IRQn, (uint32_t)&_triggerInterrupt);
-    NVIC_EnableIRQ(TIMER2_IRQn);
     //
 
     LPC_TIM2->TCR = 0x2;            // Timer2 count reset