stm32: rcc: convert to use new standard defines
This commit is contained in:
@@ -48,9 +48,9 @@ const struct rcc_clock_scale rcc_hsi_configs[] = {
|
||||
{ /* 48MHz */
|
||||
.pllmul = RCC_CFGR_PLLMUL_MUL12,
|
||||
.pllsrc = RCC_CFGR_PLLSRC_HSI_DIV2,
|
||||
.hpre = RCC_CFGR_HPRE_DIV_NONE,
|
||||
.ppre1 = RCC_CFGR_PPRE1_DIV_2,
|
||||
.ppre2 = RCC_CFGR_PPRE2_DIV_NONE,
|
||||
.hpre = RCC_CFGR_HPRE_NODIV,
|
||||
.ppre1 = RCC_CFGR_PPRE_DIV2,
|
||||
.ppre2 = RCC_CFGR_PPRE_NODIV,
|
||||
.flash_waitstates = 1,
|
||||
.ahb_frequency = 48000000,
|
||||
.apb1_frequency = 24000000,
|
||||
@@ -59,9 +59,9 @@ const struct rcc_clock_scale rcc_hsi_configs[] = {
|
||||
{ /* 64MHz */
|
||||
.pllmul = RCC_CFGR_PLLMUL_MUL16,
|
||||
.pllsrc = RCC_CFGR_PLLSRC_HSI_DIV2,
|
||||
.hpre = RCC_CFGR_HPRE_DIV_NONE,
|
||||
.ppre1 = RCC_CFGR_PPRE1_DIV_2,
|
||||
.ppre2 = RCC_CFGR_PPRE2_DIV_NONE,
|
||||
.hpre = RCC_CFGR_HPRE_NODIV,
|
||||
.ppre1 = RCC_CFGR_PPRE_DIV2,
|
||||
.ppre2 = RCC_CFGR_PPRE_NODIV,
|
||||
.flash_waitstates = 2,
|
||||
.ahb_frequency = 64000000,
|
||||
.apb1_frequency = 32000000,
|
||||
@@ -76,9 +76,9 @@ const struct rcc_clock_scale rcc_hse8mhz_configs[] = {
|
||||
.plldiv = RCC_CFGR2_PREDIV_NODIV,
|
||||
.usbdiv1 = false,
|
||||
.flash_waitstates = 2,
|
||||
.hpre = RCC_CFGR_HPRE_DIV_NONE,
|
||||
.ppre1 = RCC_CFGR_PPRE1_DIV_2,
|
||||
.ppre2 = RCC_CFGR_PPRE2_DIV_NONE,
|
||||
.hpre = RCC_CFGR_HPRE_NODIV,
|
||||
.ppre1 = RCC_CFGR_PPRE_DIV2,
|
||||
.ppre2 = RCC_CFGR_PPRE_NODIV,
|
||||
.ahb_frequency = 72e6,
|
||||
.apb1_frequency = 36e6,
|
||||
.apb2_frequency = 72e6,
|
||||
|
||||
Reference in New Issue
Block a user