zhyinch
2021-11-02 9bfefe7171abd37ec7af68e095d220b28d183a20
源码/核心板/Src/stm32f10x_it.c
@@ -47,7 +47,7 @@
      {
      TIM_ClearITPendingBit(TIM3, TIM_IT_Update  );  //??TIMx?????? 
//   main_logic();      
//   time32_incr++;
   time32_incr++;
//   heartbeat_timer++;
   sync_timer++;   
//   neartimout_timer++;
@@ -74,21 +74,22 @@
         flag_newsecond=1;
//      GPIO_WriteBit(GPIOA, GPIO_Pin_8, Bit_SET);   
         sync_timer=0;
//         synclost_count++;
//        TagListUpdate();
//         if(g_com_map[BASESYNCSEQ]==1)  //鏈ā鍧楁槸鍚屾鍩虹珯
//         {
//            synclost_count = 0;
//            current_syncid = 1;
//            sync_seq=0;
//               SyncPoll(sync_seq);
//         }
//      }
         synclost_count++;
         if(g_Resttimer++>12)
         {
            NVIC_SystemReset();
         }
      if(g_com_map[BASESYNCSEQ]==1)  //鏈ā鍧楁槸鍚屾鍩虹珯
         {
            synclost_count = 0;
            current_syncid = 1;
            sync_seq=0;
            SyncPoll(sync_seq);
         }
      }
//      
//   if(g_Resttimer++>12000)
//   {
//      NVIC_SystemReset();
//   }
@@ -121,7 +122,7 @@
//      g_start_send_flag=1;
//      }
//      
   }
      }
}