"A Software reset, forced by setting the HALT bit in the RCCU_SMR register (when enabled with SRESEN bit and the ENHALT bit in the RCCU_CCR register)"
可以通过RCCU.h文件定义的: /******************************************************************************* * Function Name : RCCU_ResetSources * Description : Return the source of the system reset * Input : None * Return : The reset source *******************************************************************************/ inline RCCU_ResetSources RCCU_ResetSource () {
switch(RCCU->CFR & RCCU_ResetSources_Mask) { case 0x00000020: return RCCU_SoftwareReset; case 0x00000040: return RCCU_WDGReset; case 0x00000080: return RCCU_RTCAlarmReset; case 0x00000200: return RCCU_LVDReset; case 0x00000400: return RCCU_WKPReset; default : return RCCU_ExternalReset; } }