update stm32f2/f4: fixed PLL_M define.
This commit is contained in:
parent
5d65e6eeb6
commit
3563c195fb
@ -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…
x
Reference in New Issue
Block a user