boards/stm32g4: enable max 170MHz clock by default

This commit is contained in:
Alexandre Abadie 2020-08-24 15:28:13 +02:00
parent 84bbee784d
commit d15d123eef
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -48,15 +48,10 @@ extern "C" {
#define CLOCK_CORECLOCK (CLOCK_HSE) #define CLOCK_CORECLOCK (CLOCK_HSE)
#elif CLOCK_USE_PLL #elif CLOCK_USE_PLL
/* The following parameters configure a 80MHz system clock with HSE as input clock */ /* The following parameters configure a 170MHz system clock with HSE as input clock */
#define CLOCK_PLL_M (6)
#define CLOCK_PLL_N (40)
#define CLOCK_PLL_R (2)
/* Use the following to reach 170MHz
#define CLOCK_PLL_M (6) #define CLOCK_PLL_M (6)
#define CLOCK_PLL_N (85) #define CLOCK_PLL_N (85)
#define CLOCK_PLL_R (2) #define CLOCK_PLL_R (2)
*/
#if CLOCK_HSE #if CLOCK_HSE
#define CLOCK_PLL_SRC (CLOCK_HSE) #define CLOCK_PLL_SRC (CLOCK_HSE)
#else /* CLOCK_HSI */ #else /* CLOCK_HSI */