Skip to content

Commit

Permalink
Use CubeMX structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ggajoch committed Jul 30, 2019
1 parent da8a7d0 commit cfce9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Src/stm32f1xx_it.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
TIM2->CNT = 800;
htim2.Instance->CNT = 800;
HAL_TIM_Base_Start_IT(&htim2);
HAL_NVIC_DisableIRQ(EXTI0_IRQn);
HAL_NVIC_DisableIRQ(EXTI1_IRQn);
Expand Down

0 comments on commit cfce9f0

Please sign in to comment.