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: Src/tim.c
- Revision:
- 2:d45b3a0f19a2
- Parent:
- 0:dffe3a22587d
--- a/Src/tim.c Fri Sep 01 15:32:42 2017 +0000
+++ b/Src/tim.c Sat Sep 02 06:56:21 2017 +0000
@@ -64,7 +64,7 @@
htim3.Instance = TIM3;
htim3.Init.Prescaler = 0;
htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
- htim3.Init.Period = 4999;
+ htim3.Init.Period = TIM_CLOCK_SOURCE_HZ / 20000 - 1;
htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
{
@@ -162,4 +162,3 @@
*/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
-