|
|
@ -57,9 +57,9 @@ const struct rcc_clock_scale rcc_hsi_configs[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSI_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_NONE, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_NODIV, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_2WS, |
|
|
@ -74,9 +74,9 @@ const struct rcc_clock_scale rcc_hsi_configs[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSI_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -91,9 +91,9 @@ const struct rcc_clock_scale rcc_hsi_configs[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 8, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSI_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -111,9 +111,9 @@ const struct rcc_clock_scale rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_NONE, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_NODIV, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_2WS, |
|
|
@ -128,9 +128,9 @@ const struct rcc_clock_scale rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -145,9 +145,9 @@ const struct rcc_clock_scale rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 8, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -165,9 +165,9 @@ const struct rcc_clock_scale rcc_hse_12mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_NONE, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_NODIV, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_2WS, |
|
|
@ -182,9 +182,9 @@ const struct rcc_clock_scale rcc_hse_12mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -199,9 +199,9 @@ const struct rcc_clock_scale rcc_hse_12mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 8, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -219,9 +219,9 @@ const struct rcc_clock_scale rcc_hse_16mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_NONE, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_NODIV, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_2WS, |
|
|
@ -236,9 +236,9 @@ const struct rcc_clock_scale rcc_hse_16mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -253,9 +253,9 @@ const struct rcc_clock_scale rcc_hse_16mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 8, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -273,9 +273,9 @@ const struct rcc_clock_scale rcc_hse_25mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_NONE, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_NODIV, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_2WS, |
|
|
@ -290,9 +290,9 @@ const struct rcc_clock_scale rcc_hse_25mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 7, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
@ -307,9 +307,9 @@ const struct rcc_clock_scale rcc_hse_25mhz_3v3[RCC_CLOCK_3V3_END] = { |
|
|
|
.pllq = 8, |
|
|
|
.pllr = 0, |
|
|
|
.pll_source = RCC_CFGR_PLLSRC_HSE_CLK, |
|
|
|
.hpre = RCC_CFGR_HPRE_DIV_NONE, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV_4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV_2, |
|
|
|
.hpre = RCC_CFGR_HPRE_NODIV, |
|
|
|
.ppre1 = RCC_CFGR_PPRE_DIV4, |
|
|
|
.ppre2 = RCC_CFGR_PPRE_DIV2, |
|
|
|
.voltage_scale = PWR_SCALE1, |
|
|
|
.flash_config = FLASH_ACR_DCEN | FLASH_ACR_ICEN | |
|
|
|
FLASH_ACR_LATENCY_5WS, |
|
|
|