STM32F107 OTG FS clock presecaler cannot be configurated after the USB clock is enabled
This commit is contained in:
parent
f4d13c4acb
commit
345d5b2654
@ -110,7 +110,7 @@
|
||||
#define STM32_CFGR_USBPRE 0
|
||||
|
||||
/* Timer Frequencies, if APBx is set to 1, frequency is same to APBx
|
||||
* otherwise frequency is 2xAPBx.
|
||||
* otherwise frequency is 2xAPBx.
|
||||
* Note: TIM1,8 are on APB2, others on APB1 */
|
||||
|
||||
#define STM32_TIM18_FREQUENCY STM32_HCLK_FREQUENCY
|
||||
|
@ -111,7 +111,7 @@
|
||||
* USB clock = PLLOUT / 1.5 = 72MHz / 1.5 = 48MHz
|
||||
*/
|
||||
|
||||
#define STM32_CFGR_USBPRE 0
|
||||
#define STM32_CFGR_OTGFSPRE 0
|
||||
|
||||
/* MCO output driven by PLL3. From above, we already have PLL3 input frequency as:
|
||||
*
|
||||
@ -120,7 +120,7 @@
|
||||
* NOTE: The Viewtool DP83848C module has its on, on-board 50MHz clock. No
|
||||
* MCO clock need be provided on that board.
|
||||
*/
|
||||
|
||||
|
||||
#if defined(CONFIG_STM32_MII_MCO) || defined(CONFIG_STM32_RMII_MCO)
|
||||
# define BOARD_CFGR_MCO_SOURCE RCC_CFGR_PLL3CLK /* Source: PLL3 */
|
||||
# define STM32_PLL_PLL3MUL RCC_CFGR2_PLL3MULx10 /* MCO 5MHz * 10 = 50MHz */
|
||||
|
Loading…
Reference in New Issue
Block a user