Implementation/myEXTI.c
void EXTI15_10_IRQHandler(){ 
   
   if(n1<11){      
      n1 = n1+1;}      
      if(n1==11){
      dir=dir*(-1);
         n1=1;
      }
   if ((EXTI->PR& EXTI_PR_PR13)==EXTI_PR_PR13){
   duty_em=duty_em+0.2*dir;
   EXTI->PR|=EXTI_PR_PR13;//clear method of this one
   }
}
// External interrupt handler for push button

External interrupt handler for push button
External interrupt handler for push button
void EXTI15_10_IRQHandler(){ 
   if(n1<11){      
      n1 = n1+1;}      
      if(n1==11){
      dir=dir*(-1);
         n1=1;
      }
   if ((EXTI->PR& EXTI_PR_PR13)==EXTI_PR_PR13){
   duty_em=duty_em+0.2*dir;
   EXTI->PR|=EXTI_PR_PR13;
   }
}
void EXTI15_10_IRQHandler ( ) { if ( n1 < 11 ) { n1 = n1 + 1 ; } if ( n1 == 11 ) { dir = dir * ( -1 ) ; n1 = 1 ; } if ( ( EXTI -> PR & EXTI_PR_PR13 ) == EXTI_PR_PR13 ) { duty_em = duty_em + 0.2 * dir ; EXTI -> PR |= EXTI_PR_PR13 ; } }
External interrupt handler for push button
External interrupt handler for push button
//clear method of this one
