TIM_MasterConfigTypeDef sMasterConfig;/* Time Base configuration */htim.Instance = TIMx; htim.Init.Period =3600; htim.Init.Prescaler =0; htim.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim.Init.CounterMode = TIM_COUNTERMODE_UP; htim.Init.RepetitionCounter =0x0;if(HAL_TIM_Base_Init(...
Status = HAL_TIM_Base_Init(&TimHandle); if (Status == HAL_OK) { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1U) HAL_TIM_RegisterCallback(&TimHandle, HAL_TIM_PERIOD_ELAPSED_CB_ID, TimeBase_TIM_PeriodElapsedCallback); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /* Start the TIM time...