From 95f736655c46ec4974e89c7f0ca6a542cdbf3532 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期二, 26 四月 2022 17:15:25 +0800
Subject: [PATCH] V1.73

---
 源码/核心板/Src/stm32f10x_it.c |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/stm32f10x_it.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/stm32f10x_it.c"
index 730b3f6..8f4ccd4 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/stm32f10x_it.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/stm32f10x_it.c"
@@ -41,6 +41,8 @@
 u8 neartimout_timer=0,flag_syncbase=0,flag_newsecond=0;
 extern u16 tyncpoll_time,target_time;
 extern uint32_t synclost_timer,current_syncid;
+uint8_t juststart_timer=2,justselftest_timer=2,selftesttimer,rflosttimer;
+extern u8 juststart_flag,justsleftest_flag,rf_flag;
 void TIM3_IRQHandler(void)   //TIM3??
 {
 	if (TIM_GetITStatus(TIM3, TIM_IT_Update) != RESET)  //??TIM3????????
@@ -71,6 +73,28 @@
 			flag_newsecond=1;
 		//GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_SET);	
 			sync_timer=0;
+          if(juststart_timer>0)
+               {
+                   juststart_timer--;
+                 juststart_flag = 1;
+               }else{
+                 juststart_flag = 0;
+               }
+               if(justselftest_timer>0)
+               {
+                   justselftest_timer--;
+                  justsleftest_flag = 1;
+               }else{
+                  justsleftest_flag = 0;
+               }
+                   if(rflosttimer>10)
+                    {
+                        rf_flag = 1;
+                    }else{
+                         rflosttimer++;
+                       rf_flag = 0;
+                    }
+            selftesttimer++;
 		  TagListUpdate();
 		}
 		

--
Gitblit v1.9.3