sweep feature added
This commit is contained in:
+2
-2
@@ -658,9 +658,9 @@ static void MX_TIM2_Init(void)
|
||||
/* USER CODE BEGIN TIM2_Init 1 */
|
||||
|
||||
/* USER CODE END TIM2_Init 1 */
|
||||
TIM_InitStruct.Prescaler = 1000;
|
||||
TIM_InitStruct.Prescaler = 91;
|
||||
TIM_InitStruct.CounterMode = LL_TIM_COUNTERMODE_UP;
|
||||
TIM_InitStruct.Autoreload = 840000;
|
||||
TIM_InitStruct.Autoreload = 9;
|
||||
TIM_InitStruct.ClockDivision = LL_TIM_CLOCKDIVISION_DIV1;
|
||||
LL_TIM_Init(TIM2, &TIM_InitStruct);
|
||||
LL_TIM_DisableARRPreload(TIM2);
|
||||
|
||||
Reference in New Issue
Block a user