mirror of https://github.com/ARMmbed/mbed-os.git
Fix SystemReset Hang issue
parent
bf4f1b18ba
commit
0a2d843e15
|
@ -25,8 +25,8 @@
|
|||
|
||||
//#include "cmsis.h"
|
||||
//#include <stdint.h>
|
||||
#include "rda_ccfg_api.h"
|
||||
|
||||
extern void rda_ccfg_ckrst(void);
|
||||
extern void rda_wdt_softreset(void);
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -38,8 +38,8 @@ extern "C" {
|
|||
*/
|
||||
__NO_RETURN __STATIC_INLINE void __RDA5981_SystemReset(void)
|
||||
{
|
||||
|
||||
//rda_ccfg_ckrst () ;
|
||||
rda_ccfg_perrst();
|
||||
__DSB(); /* Ensure all outstanding memory accesses included
|
||||
buffered write are completed before reset */
|
||||
SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
|
||||
|
|
Loading…
Reference in New Issue