/**
* @brief Reset the mcu by software
*
* @param none
*
* @note
*/
void SoftReset(void)
{
__set_FAULTMASK(1); // 关闭所有中断
NVIC_SystemReset(); // 复位
}
疑问?
1、复位后RCC_CSR一直为0
/**
* @brief Reset the mcu by software
*
* @param none
*
* @note
*/
void SoftReset(void)
{
__set_FAULTMASK(1); // 关闭所有中断
NVIC_SystemReset(); // 复位
}
疑问?
1、复位后RCC_CSR一直为0