From 4a13529748c983ff0d5627a28365ad7737141016 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期五, 18 二月 2022 09:31:49 +0800 Subject: [PATCH] V1.62 --- 源码/核心板/Src/stm32f10x_it.c | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 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 d454d67..58eb6ef 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" @@ -37,7 +37,7 @@ uint16_t sysscal; u16 tag_recv_timer, tag_timer,last_polltime; extern uint16_t g_Resttimer,heartbeat_timer,sync_timer; -extern uint8_t g_pairstart; +extern uint8_t g_pairstart,getrange_success; u8 neartimout_timer=0,flag_syncbase=0,flag_newsecond=0; extern u16 tyncpoll_time,target_time; extern uint32_t synclost_timer,current_syncid; @@ -55,13 +55,17 @@ //GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_RESET); if(sync_timer>=1000) { +// if(getrange_success==0) +// { +// NVIC_SystemReset(); +// } flag_newsecond=1; //GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_SET); sync_timer=0; TagListUpdate(); } - if(g_Resttimer++>2000) + if(g_Resttimer++>10000) { NVIC_SystemReset(); } @@ -156,4 +160,12 @@ // } } +void HardFalut_Handler(void) +{ + while(1) + { + NVIC_SystemReset(); + } + +} -- Gitblit v1.9.3