zhyinch
2020-11-17 c8fa9e7b73d663fd1ee78632d38cea1b49c14d39
源码/核心板/Src/stm32f10x_it.c
@@ -55,17 +55,17 @@
   //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;
        TagListUpdate();
      }
      
   if(g_Resttimer++>20000)
   if(g_Resttimer++>5000)
   {
      NVIC_SystemReset();
   }
@@ -160,4 +160,12 @@
//  }    
}
void HardFalut_Handler(void)
{
   while(1)
   {
      NVIC_SystemReset();
   }
}