Subversion Repositories dashGPS

Rev

Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 21
Line 299... Line 299...
299
    __HAL_RCC_GPIOB_CLK_ENABLE();
299
    __HAL_RCC_GPIOB_CLK_ENABLE();
300
    /**TIM4 GPIO Configuration
300
    /**TIM4 GPIO Configuration
301
    PB6     ------> TIM4_CH1
301
    PB6     ------> TIM4_CH1
302
    PB7     ------> TIM4_CH2
302
    PB7     ------> TIM4_CH2
303
    */
303
    */
304
    GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
304
    GPIO_InitStruct.Pin = encoder_1_Pin|encoder_2_Pin;
305
    GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
305
    GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
306
    GPIO_InitStruct.Pull = GPIO_PULLUP;
306
    GPIO_InitStruct.Pull = GPIO_PULLUP;
307
    HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
307
    HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
308
 
308
 
309
  /* USER CODE BEGIN TIM4_MspInit 1 */
309
  /* USER CODE BEGIN TIM4_MspInit 1 */
Line 353... Line 353...
353
 
353
 
354
    /**TIM4 GPIO Configuration
354
    /**TIM4 GPIO Configuration
355
    PB6     ------> TIM4_CH1
355
    PB6     ------> TIM4_CH1
356
    PB7     ------> TIM4_CH2
356
    PB7     ------> TIM4_CH2
357
    */
357
    */
358
    HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6|GPIO_PIN_7);
358
    HAL_GPIO_DeInit(GPIOB, encoder_1_Pin|encoder_2_Pin);
359
 
359
 
360
  /* USER CODE BEGIN TIM4_MspDeInit 1 */
360
  /* USER CODE BEGIN TIM4_MspDeInit 1 */
361
 
361
 
362
  /* USER CODE END TIM4_MspDeInit 1 */
362
  /* USER CODE END TIM4_MspDeInit 1 */
363
  }
363
  }