From 012f7bf4e14a8e92f5bba7a2c80b78cbe42fb362 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期二, 23 三月 2021 12:17:37 +0800 Subject: [PATCH] V1.42 增加全基站数据模式,配合新华智云测试 --- 源码/核心板/Src/stm32f10x_it.c | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 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 a62649b..3905386 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" @@ -55,17 +55,17 @@ //GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_RESET); if(sync_timer>=1000) { - if(getrange_success==0) - { - NVIC_SystemReset(); - } +// 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++>20000) { NVIC_SystemReset(); } @@ -160,4 +160,12 @@ // } } +void HardFalut_Handler(void) +{ + while(1) + { + NVIC_SystemReset(); + } + +} -- Gitblit v1.9.3