23 #ifndef CLK_F2F4F7_CFG_CLOCK_DEFAULT_84_H
24 #define CLK_F2F4F7_CFG_CLOCK_DEFAULT_84_H
39 #ifndef CONFIG_CLOCK_PLL_M
40 #if IS_ACTIVE(CONFIG_BOARD_HAS_HSE) && (CONFIG_CLOCK_HSE == MHZ(25))
41 #define CONFIG_CLOCK_PLL_M (25)
43 #define CONFIG_CLOCK_PLL_M (4)
46 #ifndef CONFIG_CLOCK_PLL_N
47 #if IS_ACTIVE(CONFIG_BOARD_HAS_HSE) && (CONFIG_CLOCK_HSE == MHZ(8))
48 #define CONFIG_CLOCK_PLL_N (168)
49 #elif IS_ACTIVE(CONFIG_BOARD_HAS_HSE) && (CONFIG_CLOCK_HSE == MHZ(25))
50 #define CONFIG_CLOCK_PLL_N (336)
52 #define CONFIG_CLOCK_PLL_N (84)
55 #ifndef CONFIG_CLOCK_PLL_P
56 #define CONFIG_CLOCK_PLL_P (4)
58 #ifndef CONFIG_CLOCK_PLL_Q
59 #define CONFIG_CLOCK_PLL_Q (7)
61 #ifndef CONFIG_CLOCK_PLL_R
62 #define CONFIG_CLOCK_PLL_R (0)
70 #ifndef CONFIG_CLOCK_APB1_DIV
71 #define CONFIG_CLOCK_APB1_DIV (2)
73 #ifndef CONFIG_CLOCK_APB2_DIV
74 #define CONFIG_CLOCK_APB2_DIV (1)
78 #if CLOCK_CORECLOCK > MHZ(84)
79 #error "SYSCLK cannot exceed 84MHz"
Common macros and compiler attributes/pragmas configuration.