All timer will not correct with 40M Clock, set back to 160M

pull/11888/head
fred.li 2019-07-18 14:32:18 +08:00
parent 18fa28db77
commit fc8ae6fb18
2 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ extern "C" {
*/
__NO_RETURN __STATIC_INLINE void __RDA5981_SystemReset(void)
{
//rda_ccfg_ckrst () ;
rda_ccfg_perrst();
rda_ccfg_ckrst () ;
__DSB(); /* Ensure all outstanding memory accesses included
buffered write are completed before reset */
SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |

View File

@ -211,7 +211,7 @@ int rda_ccfg_boot(void)
}
/*close usb polling*/
RDA_GPIO->CTRL &= ~(0x01UL << 12);
//rda_ccfg_ck();
rda_ccfg_ck();
/* Set flash clock */
rda_ccfg_spifck();
/* Set aon timer clock source */