STM32软件复位

在需要软件复位的地方添加如下两句代码:

__set_FAULTMASK(1);  //关中断
NVIC_SystemReset();  //复位
posted @ 2020-08-11 11:08  souha  阅读(636)  评论(0编辑  收藏  举报