From b5dc11acf7d70e2ddcff627db25445e2588b3f7a Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期六, 28 五月 2022 10:34:48 +0800 Subject: [PATCH] V1.64 增加碰撞随机跳时间片 --- 源码/核心板/Src/stm32f10x_it.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 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 1d55cfb..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" @@ -65,7 +65,7 @@ TagListUpdate(); } - if(g_Resttimer++>20000) + if(g_Resttimer++>10000) { NVIC_SystemReset(); } @@ -160,4 +160,12 @@ // } } +void HardFalut_Handler(void) +{ + while(1) + { + NVIC_SystemReset(); + } + +} -- Gitblit v1.9.3