STM32软件复位

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

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