From fa5a89bd9f87ef619619194d00cd495d165e1f12 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期六, 27 六月 2020 19:33:44 +0800 Subject: [PATCH] V1.19 测试10对10 200ms防撞。 --- 源码/核心板/Src/stm32f10x_it.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 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 77ee444..3927bc7 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" @@ -61,9 +61,9 @@ TagListUpdate(); } - if(g_Resttimer++>2000) + if(g_Resttimer++>12000) { -// NVIC_SystemReset(); + NVIC_SystemReset(); } @@ -82,7 +82,7 @@ } #ifdef USART_INTEGRATE_OUTPUT - if(sync_timer==target_time) + if(sync_timer%g_com_map[COM_INTERVAL]==0) { usart_send_flag=1; @@ -94,7 +94,7 @@ } if(synclost_timer>SYNCLOST_TIME) { - //flag_syncbase=1; + flag_syncbase=1; } if(flag_syncbase) //本模块是同步基站 @@ -109,6 +109,7 @@ }else{ //标签同步处理 if(sync_timer==target_time) { + last_polltime=sync_timer; // GPIO_WriteBit(GPIOA, GPIO_Pin_9, Bit_SET); g_start_send_flag=1; -- Gitblit v1.9.3