From 815ea18d897111c4bf70861277acf94201ccf60a Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期五, 14 十月 2022 16:25:59 +0800
Subject: [PATCH] V1.72 增加滤波器 增加频率可调

---
 源码/核心板/Src/stm32f10x_it.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 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 feb3db5..3e4722b 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,7 @@
 u8 neartimout_timer=0,flag_syncbase=0,flag_newsecond=0;
 extern u16 tyncpoll_time,target_time,success_ancid;
 extern uint32_t synclost_timer,current_syncid;
+extern uint8_t usart_send_array[5][21],usart_array_num;
 void TIM3_IRQHandler(void)   //TIM3??
 {
 	if (TIM_GetITStatus(TIM3, TIM_IT_Update) != RESET)  //??TIM3????????
@@ -62,8 +63,6 @@
 			flag_newsecond=1;
 		//GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_SET);	
 			sync_timer=0;
-            dissucc_times = 0;
-            success_ancid = 0;
 		  TagListUpdate();
 		}
 		
@@ -72,7 +71,13 @@
 		NVIC_SystemReset();
 	}
 
-
+        if(g_com_map[DEV_ROLE]&&(time32_incr%g_com_map[COM_INTERVAL]==0))
+        {
+            dissucc_times = 0;
+            success_ancid = 0;
+            USART_puts(usart_send_array[0],21*usart_array_num);
+            usart_array_num = 0;
+        }
 
 	
 	if(!g_com_map[DEV_ROLE])  //基站

--
Gitblit v1.9.3