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.
Diff: TimerCapture.cpp
- Revision:
- 4:3ae9f68bae6a
- Parent:
- 2:7c4ca945bfe1
--- a/TimerCapture.cpp Thu May 21 08:34:46 2015 +0000
+++ b/TimerCapture.cpp Wed Jun 10 06:21:13 2015 +0000
@@ -116,7 +116,7 @@
LPC_SC->PCLKSEL1 |= (clockSel << 12);
// Set prescaler counter
- LPC_TIM2->PR = 100000; //should increment once a milisecond.
+ LPC_TIM2->PR = SystemCoreClock/1000; //should increment once a milisecond.
}
\ No newline at end of file