/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_rcc_ex.c | 820 uint32_t pllvco, plln, pllp; in HAL_RCCEx_GetPeriphCLKFreq() local 871 pllvco = MSIRangeTable[(__HAL_RCC_GET_MSI_RANGE() >> 4U)]; in HAL_RCCEx_GetPeriphCLKFreq() 875 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 881 pllvco = HSI_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 885 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 891 pllvco = HSE_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 895 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 900 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 907 frequency = RCCEx_GetSAIxPeriphCLKFreq(RCC_PERIPHCLK_SAI1, pllvco); in HAL_RCCEx_GetPeriphCLKFreq() 911 frequency = RCCEx_GetSAIxPeriphCLKFreq(RCC_PERIPHCLK_SAI2, pllvco); in HAL_RCCEx_GetPeriphCLKFreq() [all …]
|
D | stm32l5xx_hal_rcc.c | 1435 uint32_t pllvco, pllsource, pllr, pllm; /* no init needed */ in HAL_RCC_GetSysClockFreq() local 1494 pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in HAL_RCC_GetSysClockFreq() 1498 pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in HAL_RCC_GetSysClockFreq() 1503 pllvco = (msirange / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in HAL_RCC_GetSysClockFreq() 1507 sysclockfreq = pllvco / pllr; in HAL_RCC_GetSysClockFreq() 1992 uint32_t msirange, pllvco, pllsource, pllr, pllm, sysclockfreq; /* no init needed */ in RCC_GetSysClockFreqFromPLLSource() local 2003 … pllvco = (HSI_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in RCC_GetSysClockFreqFromPLLSource() 2007 … pllvco = (HSE_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in RCC_GetSysClockFreqFromPLLSource() 2021 pllvco = MSIRangeTable[msirange]; in RCC_GetSysClockFreqFromPLLSource() 2025 pllvco = 0; in RCC_GetSysClockFreqFromPLLSource() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_rcc_ex.c | 1153 uint32_t srcclk, pll_oscsource, pllvco, plln; /* no init needed */ in HAL_RCCEx_GetPeriphCLKFreq() local 1215 pllvco = MSIRangeTable[(__HAL_RCC_GET_MSI_RANGE() >> 4U)]; in HAL_RCCEx_GetPeriphCLKFreq() 1219 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 1225 pllvco = HSI_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 1229 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 1235 pllvco = HSE_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 1239 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 1244 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 1253 frequency = RCCEx_GetSAIxPeriphCLKFreq(RCC_PERIPHCLK_SAI1, pllvco); in HAL_RCCEx_GetPeriphCLKFreq() 1261 frequency = RCCEx_GetSAIxPeriphCLKFreq(RCC_PERIPHCLK_SAI2, pllvco); in HAL_RCCEx_GetPeriphCLKFreq() [all …]
|
D | stm32l4xx_hal_rcc.c | 1399 uint32_t pllvco, pllsource, pllr, pllm; /* no init needed */ in HAL_RCC_GetSysClockFreq() local 1455 pllvco = HSI_VALUE; in HAL_RCC_GetSysClockFreq() 1459 pllvco = HSE_VALUE; in HAL_RCC_GetSysClockFreq() 1464 pllvco = msirange; in HAL_RCC_GetSysClockFreq() 1468 pllvco = (pllvco * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)) / pllm; in HAL_RCC_GetSysClockFreq() 1470 sysclockfreq = pllvco / pllr; in HAL_RCC_GetSysClockFreq() 1880 uint32_t msirange, pllvco, pllsource, pllr, pllm, sysclockfreq; /* no init needed */ in RCC_GetSysClockFreqFromPLLSource() local 1890 pllvco = HSI_VALUE; in RCC_GetSysClockFreqFromPLLSource() 1894 pllvco = HSE_VALUE; in RCC_GetSysClockFreqFromPLLSource() 1908 pllvco = MSIRangeTable[msirange]; in RCC_GetSysClockFreqFromPLLSource() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32u5xx/soc/ |
D | system_stm32u5xx.c | 274 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 318 pllvco = (float_t)0U; in SystemCoreClockUpdate() 322 pllvco = ((float_t)HSI_VALUE / (float_t)pllm); in SystemCoreClockUpdate() 326 pllvco = ((float_t)HSE_VALUE / (float_t)pllm); in SystemCoreClockUpdate() 330 pllvco = ((float_t)msirange / (float_t)pllm); in SystemCoreClockUpdate() 334 …pllvco = pllvco * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_PLL1N) + (fracn1/(float_t)0x20… in SystemCoreClockUpdate() 336 SystemCoreClock = (uint32_t)((uint32_t)pllvco/pllr); in SystemCoreClockUpdate()
|
D | system_stm32u5xx_s.c | 297 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 341 pllvco = (float_t)0U; in SystemCoreClockUpdate() 345 pllvco = ((float_t)HSI_VALUE / (float_t)pllm); in SystemCoreClockUpdate() 349 pllvco = ((float_t)HSE_VALUE / (float_t)pllm); in SystemCoreClockUpdate() 353 pllvco = ((float_t)msirange / (float_t)pllm); in SystemCoreClockUpdate() 357 …pllvco = pllvco * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_PLL1N) + (fracn1/(float_t)0x20… in SystemCoreClockUpdate() 359 SystemCoreClock = (uint32_t)((uint32_t)pllvco/pllr); in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_rcc_ex.c | 652 uint32_t pllvco, plln, pllp; in HAL_RCCEx_GetPeriphCLKFreq() local 692 pllvco = HSI_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 696 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 703 pllvco = HSE_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 707 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 712 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 716 pllvco = (pllvco / ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLM) >> RCC_PLLCFGR_PLLM_Pos) + 1U)); in HAL_RCCEx_GetPeriphCLKFreq() 1024 …frequency = (pllvco * plln) / (((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLQ) >> RCC_PLLCFGR_PLLQ_Pos)… in HAL_RCCEx_GetPeriphCLKFreq() 1057 …frequency = (pllvco * plln) / (((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLQ) >> RCC_PLLCFGR_PLLQ_Pos)… in HAL_RCCEx_GetPeriphCLKFreq() 1095 …frequency = (pllvco * plln) / (((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLQ) >> RCC_PLLCFGR_PLLQ_Pos)… in HAL_RCCEx_GetPeriphCLKFreq() [all …]
|
D | stm32g4xx_hal_rcc.c | 1066 uint32_t pllvco, pllsource, pllr, pllm; in HAL_RCC_GetSysClockFreq() local 1092 … pllvco = (HSE_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in HAL_RCC_GetSysClockFreq() 1097 … pllvco = (HSI_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in HAL_RCC_GetSysClockFreq() 1101 sysclockfreq = pllvco/pllr; in HAL_RCC_GetSysClockFreq() 1362 uint32_t pllvco, pllsource, pllr, pllm; in RCC_GetSysClockFreqFromPLLSource() local 1374 … pllvco = (HSE_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in RCC_GetSysClockFreqFromPLLSource() 1379 … pllvco = (HSI_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in RCC_GetSysClockFreqFromPLLSource() 1384 sysclockfreq = pllvco/pllr; in RCC_GetSysClockFreqFromPLLSource()
|
/hal_stm32-3.5.0/stm32cube/stm32l5xx/soc/ |
D | system_stm32l5xx.c | 264 uint32_t tmp, msirange, pllvco, pllsource, pllm, pllr; in SystemCoreClockUpdate() local 303 pllvco = (HSI_VALUE / pllm); in SystemCoreClockUpdate() 307 pllvco = (HSE_VALUE / pllm); in SystemCoreClockUpdate() 311 pllvco = (msirange / pllm); in SystemCoreClockUpdate() 314 pllvco = pllvco * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 8U); in SystemCoreClockUpdate() 316 SystemCoreClock = pllvco/pllr; in SystemCoreClockUpdate()
|
D | system_stm32l5xx_s.c | 290 uint32_t tmp, msirange, pllvco, pllsource, pllm, pllr; in SystemCoreClockUpdate() local 329 pllvco = (HSI_VALUE / pllm); in SystemCoreClockUpdate() 333 pllvco = (HSE_VALUE / pllm); in SystemCoreClockUpdate() 337 pllvco = (msirange / pllm); in SystemCoreClockUpdate() 340 pllvco = pllvco * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 8U); in SystemCoreClockUpdate() 342 SystemCoreClock = pllvco/pllr; in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32l4xx/soc/ |
D | system_stm32l4xx.c | 253 uint32_t tmp, msirange, pllvco, pllsource, pllm, pllr; in SystemCoreClockUpdate() local 292 pllvco = (HSI_VALUE / pllm); in SystemCoreClockUpdate() 296 pllvco = (HSE_VALUE / pllm); in SystemCoreClockUpdate() 300 pllvco = (msirange / pllm); in SystemCoreClockUpdate() 303 pllvco = pllvco * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 8U); in SystemCoreClockUpdate() 305 SystemCoreClock = pllvco/pllr; in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32wlxx/soc/ |
D | system_stm32wlxx.c | 268 uint32_t tmp, msirange, pllvco, pllr, pllsource , pllm; in SystemCoreClockUpdate() local 312 pllvco = (HSI_VALUE / pllm); in SystemCoreClockUpdate() 316 pllvco = (HSE_VALUE / pllm); in SystemCoreClockUpdate() 320 pllvco = (msirange / pllm); in SystemCoreClockUpdate() 324 pllvco = pllvco * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in SystemCoreClockUpdate() 327 SystemCoreClock = pllvco/pllr; in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32wbxx/soc/ |
D | system_stm32wbxx.c | 299 uint32_t tmp, msirange, pllvco, pllr, pllsource, pllm; in SystemCoreClockUpdate() local 331 pllvco = (HSI_VALUE / pllm); in SystemCoreClockUpdate() 335 pllvco = (HSE_VALUE / pllm); in SystemCoreClockUpdate() 339 pllvco = (msirange / pllm); in SystemCoreClockUpdate() 342 pllvco = pllvco * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in SystemCoreClockUpdate() 345 SystemCoreClock = pllvco / pllr; in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_rcc_ex.c | 614 uint32_t pllvco; in HAL_RCCEx_GetPeriphCLKFreq() local 656 pllvco = HSI_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 660 pllvco = HSE_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 664 pllvco = 0U; in HAL_RCCEx_GetPeriphCLKFreq() 668 pllvco = (pllvco / ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLM) >> RCC_PLLCFGR_PLLM_Pos) + 1U)); in HAL_RCCEx_GetPeriphCLKFreq() 684 …rngclk = (pllvco * plln) / ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLQ) >> RCC_PLLCFGR_PLLQ_Pos) + 1… in HAL_RCCEx_GetPeriphCLKFreq() 881 …frequency = (pllvco * plln) / ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) … in HAL_RCCEx_GetPeriphCLKFreq() 949 …frequency = (pllvco * plln) / ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) … in HAL_RCCEx_GetPeriphCLKFreq() 983 …frequency = (pllvco * plln) / ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) … in HAL_RCCEx_GetPeriphCLKFreq() 1076 …frequency = (pllvco * plln) / ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLQ) >> RCC_PLLCFGR_PLLQ_Pos) … in HAL_RCCEx_GetPeriphCLKFreq() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32g4xx/soc/ |
D | system_stm32g4xx.c | 230 uint32_t tmp, pllvco, pllr, pllsource, pllm; in SystemCoreClockUpdate() local 251 pllvco = (HSI_VALUE / pllm); in SystemCoreClockUpdate() 255 pllvco = (HSE_VALUE / pllm); in SystemCoreClockUpdate() 257 pllvco = pllvco * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 8); in SystemCoreClockUpdate() 259 SystemCoreClock = pllvco/pllr; in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32g0xx/soc/ |
D | system_stm32g0xx.c | 236 uint32_t pllvco; in SystemCoreClockUpdate() local 266 pllvco = (HSE_VALUE / pllm); in SystemCoreClockUpdate() 270 pllvco = (HSI_VALUE / pllm); in SystemCoreClockUpdate() 272 pllvco = pllvco * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); in SystemCoreClockUpdate() 275 SystemCoreClock = pllvco/pllr; in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32h5xx/soc/ |
D | system_stm32h5xx_s.c | 338 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 368 …pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_P… in SystemCoreClockUpdate() 373 …pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 378 …pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 383 pllvco = (float_t) 0U; in SystemCoreClockUpdate() 388 SystemCoreClock = (uint32_t)(float_t)(pllvco/(float_t)pllp); in SystemCoreClockUpdate()
|
D | system_stm32h5xx.c | 324 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 354 …pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_P… in SystemCoreClockUpdate() 359 …pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 364 …pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 369 pllvco = (float_t) 0U; in SystemCoreClockUpdate() 374 SystemCoreClock = (uint32_t)(float_t)(pllvco/(float_t)pllp); in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32h7xx/soc/ |
D | system_stm32h7xx_dualcore_bootcm4_cm7gated.c | 319 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 354 …pllvco = ( (float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 359 …pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 363 …pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 368 …pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N… in SystemCoreClockUpdate() 372 common_system_clock = (uint32_t)(float_t)(pllvco/(float_t)pllp); in SystemCoreClockUpdate()
|
D | system_stm32h7xx_dualcore_bootcm7_cm4gated.c | 325 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 360 …pllvco = ( (float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 365 …pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 369 …pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 374 …pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N… in SystemCoreClockUpdate() 378 common_system_clock = (uint32_t)(float_t)(pllvco/(float_t)pllp); in SystemCoreClockUpdate()
|
D | system_stm32h7xx_dualcore_boot_cm4_cm7.c | 327 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 362 …pllvco = ( (float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 367 …pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 371 …pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 376 …pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N… in SystemCoreClockUpdate() 380 common_system_clock = (uint32_t)(float_t)(pllvco/(float_t)pllp); in SystemCoreClockUpdate()
|
D | system_stm32h7xx_singlecore.c | 319 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 355 …pllvco = ( (float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 360 …pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 364 …pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 369 …pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N… in SystemCoreClockUpdate() 373 SystemCoreClock = (uint32_t)(float_t)(pllvco/(float_t)pllp); in SystemCoreClockUpdate()
|
D | system_stm32h7xx.c | 344 float_t fracn1, pllvco; in SystemCoreClockUpdate() local 380 …pllvco = ( (float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 385 …pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 389 …pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_… in SystemCoreClockUpdate() 394 …pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N… in SystemCoreClockUpdate() 398 common_system_clock = (uint32_t)(float_t)(pllvco/(float_t)pllp); in SystemCoreClockUpdate()
|
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_hal_rcc_ex.c | 387 uint32_t pllmul, plldiv, pllvco; /* no init needed */ in HAL_RCCEx_GetPeriphCLKFreq() local 480 pllvco = (HSI_VALUE >> 2U); in HAL_RCCEx_GetPeriphCLKFreq() 484 pllvco = HSI_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 489 pllvco = HSE_VALUE; in HAL_RCCEx_GetPeriphCLKFreq() 492 pllvco = (pllvco * pllmul); in HAL_RCCEx_GetPeriphCLKFreq() 493 frequency = (pllvco/ plldiv); in HAL_RCCEx_GetPeriphCLKFreq()
|
/hal_stm32-3.5.0/stm32cube/stm32f7xx/soc/ |
D | system_stm32f7xx.c | 202 uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2; in SystemCoreClockUpdate() local 226 pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); in SystemCoreClockUpdate() 231 pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); in SystemCoreClockUpdate() 235 SystemCoreClock = pllvco/pllp; in SystemCoreClockUpdate()
|