mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Kinetis MCG: Wrong FRDIV set in MCG_C1
This commit is contained in:
committed by
Gregory Nutt
parent
b6b30bcc7d
commit
0c430e1d0f
@@ -152,7 +152,7 @@ void kinetis_pllconfig(void)
|
||||
*/
|
||||
|
||||
#ifdef BOARD_FRDIV
|
||||
putreg8(BOARD_FRDIV | MCG_C1_CLKS_EXTREF, KINETIS_MCG_C1);
|
||||
putreg8((BOARD_FRDIV << MCG_C1_FRDIV_SHIFT) | MCG_C1_CLKS_EXTREF, KINETIS_MCG_C1);
|
||||
#else
|
||||
putreg8(MCG_C1_FRDIV_DIV256 | MCG_C1_CLKS_EXTREF, KINETIS_MCG_C1);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user