Merge pull request #466 from aozima/pulls
update stm32f2/f4: fixed PLL_M define.
This commit is contained in:
commit
f111495b4f
|
@ -142,7 +142,7 @@
|
|||
|
||||
|
||||
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */
|
||||
#define PLL_M 25
|
||||
#define PLL_M (HSE_VALUE / 1000000)
|
||||
#define PLL_N 240
|
||||
|
||||
/* SYSCLK = PLL_VCO / PLL_P */
|
||||
|
|
|
@ -146,7 +146,7 @@
|
|||
|
||||
/************************* PLL Parameters *************************************/
|
||||
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */
|
||||
#define PLL_M 25
|
||||
#define PLL_M (HSE_VALUE / 1000000)
|
||||
#define PLL_N 336
|
||||
|
||||
/* SYSCLK = PLL_VCO / PLL_P */
|
||||
|
|
Loading…
Reference in New Issue