LPC1114软件复位,在程序中,需要复位的地方,加上NVIC_SystemReset();这条语句即可。
NVIC_SystemReset()函数位于core_m0.h文件中,只要在头文件中包含lpc11xx.h文件即可使用。
/** \brief System Reset The function initiates a system reset request to reset the MCU. */__STATIC_INLINE void NVIC_SystemReset(void) { __DSB(); SCB->AIRCR = ((0x5FA <
『本文转载自网络,版权归原作者所有,如有侵权请联系删除』