mirror of https://github.com/ARMmbed/mbed-os.git
All timer will not correct with 40M Clock, set back to 160M
parent
18fa28db77
commit
fc8ae6fb18
|
@ -38,8 +38,8 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
__NO_RETURN __STATIC_INLINE void __RDA5981_SystemReset(void)
|
__NO_RETURN __STATIC_INLINE void __RDA5981_SystemReset(void)
|
||||||
{
|
{
|
||||||
//rda_ccfg_ckrst () ;
|
|
||||||
rda_ccfg_perrst();
|
rda_ccfg_perrst();
|
||||||
|
rda_ccfg_ckrst () ;
|
||||||
__DSB(); /* Ensure all outstanding memory accesses included
|
__DSB(); /* Ensure all outstanding memory accesses included
|
||||||
buffered write are completed before reset */
|
buffered write are completed before reset */
|
||||||
SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
|
SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
|
||||||
|
|
|
@ -211,7 +211,7 @@ int rda_ccfg_boot(void)
|
||||||
}
|
}
|
||||||
/*close usb polling*/
|
/*close usb polling*/
|
||||||
RDA_GPIO->CTRL &= ~(0x01UL << 12);
|
RDA_GPIO->CTRL &= ~(0x01UL << 12);
|
||||||
//rda_ccfg_ck();
|
rda_ccfg_ck();
|
||||||
/* Set flash clock */
|
/* Set flash clock */
|
||||||
rda_ccfg_spifck();
|
rda_ccfg_spifck();
|
||||||
/* Set aon timer clock source */
|
/* Set aon timer clock source */
|
||||||
|
|
Loading…
Reference in New Issue