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: HardwarePulseCounter.cpp
- Revision:
- 4:437833c86cdd
- Parent:
- 3:2b2c973f1549
--- a/HardwarePulseCounter.cpp Mon Oct 07 21:21:06 2019 +0000
+++ b/HardwarePulseCounter.cpp Mon Oct 07 21:34:23 2019 +0000
@@ -26,7 +26,7 @@
}
this->htim.Instance = this->TIM;
- this->htim.Init.Period = 1000;
+ this->htim.Init.Period = 0xffff;
this->htim.Init.Prescaler = 1;
this->htim.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
this->htim.Init.CounterMode = TIM_COUNTERMODE_UP;