Skip to content

Commit 0a2d843

Browse files
committed
Fix SystemReset Hang issue
1 parent bf4f1b1 commit 0a2d843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_RDA/TARGET_UNO_91H/device/RDA5981_nvic_virtual.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
//#include "cmsis.h"
2727
//#include <stdint.h>
28+
#include "rda_ccfg_api.h"
2829

29-
extern void rda_ccfg_ckrst(void);
3030
extern void rda_wdt_softreset(void);
3131
#ifdef __cplusplus
3232
extern "C" {
@@ -38,8 +38,8 @@ extern "C" {
3838
*/
3939
__NO_RETURN __STATIC_INLINE void __RDA5981_SystemReset(void)
4040
{
41-
4241
//rda_ccfg_ckrst () ;
42+
rda_ccfg_perrst();
4343
__DSB(); /* Ensure all outstanding memory accesses included
4444
buffered write are completed before reset */
4545
SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |

0 commit comments

Comments
 (0)