Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:0eb01612bcb2, committed 2013-01-09
- 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