/* This function handles TIM1 Break and TIM9 interrupts request.  */
void TIM1_BRK_TIM9_IRQHandler(void)
/* This function handles TIM1 Break and TIM9 interrupts request.  */
void TIM1_BRK_TIM9_IRQHandler(void)
{
  if (TIM_GetITStatus(TIM9, TIM_IT_CC1) != RESET)
  {
    TIM_ClearITPendingBit(TIM9, TIM_IT_CC1 );
    capture = TIM_GetCapture1(TIM9);
    TIM_SetCompare1(TIM9, capture + CCR1Val );
  }
  if (TIM_GetITStatus(TIM9, TIM_IT_CC2) != RESET)
  {
    TIM_ClearITPendingBit(TIM9, TIM_IT_CC2);
    capture = TIM_GetCapture2(TIM9);
    TIM_SetCompare2(TIM9, capture + CCR2Val);
  }
}