zhyinch
2021-11-10 1cfdce04c6fc1f67e3b5538b0bc90e0c77a71765
源码/核心板/Src/stm32f10x_it.c
@@ -55,10 +55,10 @@
   //GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_RESET);         
   if(sync_timer>=1000)
      {
         if(getrange_success==0)
         {
            NVIC_SystemReset();
         }
//         if(getrange_success==0)
//         {
//            NVIC_SystemReset();
//         }
         flag_newsecond=1;
      //GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_SET);   
         sync_timer=0;
@@ -160,4 +160,12 @@
//  }    
}
void HardFalut_Handler(void)
{
   while(1)
   {
      NVIC_SystemReset();
   }
}