|
|
@ -50,7 +50,7 @@ void MX_TIM3_Init(void) |
|
|
|
htim3.Instance = TIM3; |
|
|
|
htim3.Instance = TIM3; |
|
|
|
htim3.Init.Prescaler = 0; |
|
|
|
htim3.Init.Prescaler = 0; |
|
|
|
htim3.Init.CounterMode = TIM_COUNTERMODE_UP; |
|
|
|
htim3.Init.CounterMode = TIM_COUNTERMODE_UP; |
|
|
|
htim3.Init.Period = 1800; |
|
|
|
htim3.Init.Period = 1800*2; |
|
|
|
htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; |
|
|
|
htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; |
|
|
|
if (HAL_TIM_OC_Init(&htim3) != HAL_OK) |
|
|
|
if (HAL_TIM_OC_Init(&htim3) != HAL_OK) |
|
|
|
{ |
|
|
|
{ |
|
|
|