Dear friends,
I can not back to main routine after ISR TM2.
Have you ever met this problem?
Thanks all.
void TIM2_IRQHandler(void){
if (TIM_GetITStatus(TIM2, TIM_IT_CC1) != RESET){
TIM_ClearITPendingBit(TIM2, TIM_IT_CC1);
capture = TIM_GetCapture1(TIM2);
TIM_SetCompare1(TIM2, capture + _2ms_counter);
_2ms_func();
}
}