File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 102
102
* (when HSE is used as system clock source, directly or through the PLL).
103
103
*/
104
104
#if !defined (HSE_VALUE )
105
- #define HSE_VALUE ((uint32_t)25000000 ) /*!< Value of the External oscillator in Hz */
105
+ #define HSE_VALUE ((uint32_t)8000000 ) /*!< Value of the External oscillator in Hz */
106
106
#endif /* HSE_VALUE */
107
107
108
108
#if !defined (HSE_STARTUP_TIMEOUT )
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ HAL_StatusTypeDef HAL_Init(void);
133
133
*/
134
134
135
135
/* Select the clock sources (other than HSI) to start with (0=OFF, 1=ON) */
136
- #define USE_PLL_HSE_EXTC (0 ) /* Use external clock --> NOT USED ON THIS BOARD */
136
+ #define USE_PLL_HSE_EXTC (1 ) /* Use external clock --> NOT USED ON THIS BOARD */
137
137
#define USE_PLL_HSE_XTAL (1) /* Use external xtal */
138
138
139
139
/**
@@ -607,10 +607,10 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
607
607
{
608
608
RCC_OscInitStruct .HSEState = RCC_HSE_BYPASS ; /* External clock on OSC_IN */
609
609
}
610
- // Warning: this configuration is for a 25 MHz xtal clock only
610
+ // Warning: this configuration is for a 8 MHz xtal clock only
611
611
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
612
612
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSE ;
613
- RCC_OscInitStruct .PLL .PLLM = 25 ; // VCO input clock = 1 MHz (25 MHz / 25 )
613
+ RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 1 MHz (8 MHz / 8 )
614
614
RCC_OscInitStruct .PLL .PLLN = 432 ; // VCO output clock = 432 MHz (1 MHz * 432)
615
615
RCC_OscInitStruct .PLL .PLLP = RCC_PLLP_DIV2 ; // PLLCLK = 216 MHz (432 MHz / 2)
616
616
RCC_OscInitStruct .PLL .PLLQ = 9 ; // USB clock = 48 MHz (432 MHz / 9) --> OK for USB
You can’t perform that action at this time.
0 commit comments