Home
last modified time | relevance | path

Searched refs:pllfreq (Results 1 – 24 of 24) sorted by relevance

/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_ll_utils.c373 uint32_t pllfreq, msi_range; in LL_PLL_ConfigSystemClock_MSI() local
427pllfreq = UTILS_GetPLLOutputFrequency(__LL_RCC_CALC_MSI_FREQ(LL_RCC_MSI_IsEnabledRangeSelect(), ms… in LL_PLL_ConfigSystemClock_MSI()
445 if (pllfreq > 80000000U) in LL_PLL_ConfigSystemClock_MSI()
454 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_MSI()
460 status = LL_SetFlashLatency(pllfreq); in LL_PLL_ConfigSystemClock_MSI()
465 LL_SetSystemCoreClock(pllfreq); in LL_PLL_ConfigSystemClock_MSI()
499 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
506 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
523 if (pllfreq > 80000000U) in LL_PLL_ConfigSystemClock_HSI()
532 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
[all …]
Dstm32l5xx_hal_rcc.c1141 uint32_t pllfreq; in HAL_RCC_ClockConfig() local
1201 pllfreq = RCC_GetSysClockFreqFromPLLSource(); in HAL_RCC_ClockConfig()
1204 if (pllfreq > 80000000U) in HAL_RCC_ClockConfig()
1246 pllfreq = HAL_RCC_GetSysClockFreq(); in HAL_RCC_ClockConfig()
1249 if (pllfreq > 80000000U) in HAL_RCC_ClockConfig()
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_ll_utils.c448 uint32_t pllfreq, msi_range; in LL_PLL_ConfigSystemClock_MSI() local
505pllfreq = UTILS_GetPLLOutputFrequency(__LL_RCC_CALC_MSI_FREQ(LL_RCC_MSI_IsEnabledRangeSelect(), ms… in LL_PLL_ConfigSystemClock_MSI()
525 if(pllfreq > 80000000U) in LL_PLL_ConfigSystemClock_MSI()
535 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_MSI()
543 status = LL_SetFlashLatency(pllfreq); in LL_PLL_ConfigSystemClock_MSI()
548 LL_SetSystemCoreClock(pllfreq); in LL_PLL_ConfigSystemClock_MSI()
583 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
593 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
612 if(pllfreq > 80000000U) in LL_PLL_ConfigSystemClock_HSI()
622 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
[all …]
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_ll_utils.c410 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
417 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
434 if(pllfreq > 80000000U) in LL_PLL_ConfigSystemClock_HSI()
444 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
450 status = LL_SetFlashLatency(pllfreq); in LL_PLL_ConfigSystemClock_HSI()
455 LL_SetSystemCoreClock(pllfreq); in LL_PLL_ConfigSystemClock_HSI()
492 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
503 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
531 if(pllfreq > 80000000U) in LL_PLL_ConfigSystemClock_HSE()
541 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
[all …]
Dstm32g4xx_hal_rcc.c769 uint32_t pllfreq; in HAL_RCC_ClockConfig() local
815 pllfreq = RCC_GetSysClockFreqFromPLLSource(); in HAL_RCC_ClockConfig()
818 if(pllfreq > 80000000U) in HAL_RCC_ClockConfig()
850 pllfreq = HAL_RCC_GetSysClockFreq(); in HAL_RCC_ClockConfig()
853 if(pllfreq > 80000000U) in HAL_RCC_ClockConfig()
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_ll_utils.c487 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_MSI() local
547pllfreq = UTILS_GetPLLOutputFrequency(__LL_RCC_CALC_MSIS_FREQ(LL_RCC_MSI_IsEnabledRangeSelect(), m… in LL_PLL_ConfigSystemClock_MSI()
565 if (pllfreq > 80000000U) in LL_PLL_ConfigSystemClock_MSI()
574 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_MSI()
580 status = LL_SetFlashLatency(pllfreq); in LL_PLL_ConfigSystemClock_MSI()
585 LL_SetSystemCoreClock(pllfreq); in LL_PLL_ConfigSystemClock_MSI()
620 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
626 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
643 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
680 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
[all …]
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_ll_utils.c302 uint32_t pllfreq; in LL_PLL1_ConfigSystemClock_HSI() local
308 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL1_ConfigSystemClock_HSI()
325 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL1_ConfigSystemClock_HSI()
359 uint32_t pllfreq; in LL_PLL1_ConfigSystemClock_HSE() local
368 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL1_ConfigSystemClock_HSE()
386 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL1_ConfigSystemClock_HSE()
498 uint32_t pllfreq; in UTILS_GetPLLOutputFrequency() local
507 pllfreq = PLL_InputFrequency / (UTILS_PLLInitStruct->PLLM); in UTILS_GetPLLOutputFrequency()
508 assert_param(IS_LL_UTILS_PLLVCO_INPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
511 pllfreq = pllfreq * (UTILS_PLLInitStruct->PLLN); in UTILS_GetPLLOutputFrequency()
[all …]
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_ll_utils.c261 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
267 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
284 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
319 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
329 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
357 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
455 uint32_t pllfreq; in UTILS_GetPLLOutputFrequency() local
464 pllfreq = PLL_InputFrequency / (((UTILS_PLLInitStruct->PLLM >> RCC_PLLCFGR_PLLM_Pos) + 1U)); in UTILS_GetPLLOutputFrequency()
465 assert_param(IS_LL_UTILS_PLLVCO_INPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
468 pllfreq = pllfreq * (UTILS_PLLInitStruct->PLLN & (RCC_PLLCFGR_PLLN >> RCC_PLLCFGR_PLLN_Pos)); in UTILS_GetPLLOutputFrequency()
[all …]
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_ll_utils.c386 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSI() local
392 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
409 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
444 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSE() local
454 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
482 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
513 uint32_t pllfreq = 0U; in UTILS_GetPLLOutputFrequency() local
522pllfreq = PLL_InputFrequency / (UTILS_PLLInitStruct->PLLM & (RCC_PLLCFGR_PLLM >> RCC_PLLCFGR_PLLM_… in UTILS_GetPLLOutputFrequency()
523 assert_param(IS_LL_UTILS_PLLVCO_INPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
526 pllfreq = pllfreq * (UTILS_PLLInitStruct->PLLN & (RCC_PLLCFGR_PLLN >> RCC_PLLCFGR_PLLN_Pos)); in UTILS_GetPLLOutputFrequency()
[all …]
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_ll_utils.c377 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_CSI() local
406 pllfreq = UTILS_GetPLLOutputFrequency(CSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_CSI()
428 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_CSI()
467 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
499 pllfreq = UTILS_GetPLLOutputFrequency(hsi_clk, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
521 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
562 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
593 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
632 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
844 uint32_t pllfreq; in UTILS_GetPLLOutputFrequency() local
[all …]
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_ll_utils.c492 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSI() local
498 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
515 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
550 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSE() local
560 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
588 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
619 uint32_t pllfreq = 0U; in UTILS_GetPLLOutputFrequency() local
628pllfreq = PLL_InputFrequency / (UTILS_PLLInitStruct->PLLM & (RCC_PLLCFGR_PLLM >> RCC_PLLCFGR_PLLM_… in UTILS_GetPLLOutputFrequency()
629 assert_param(IS_LL_UTILS_PLLVCO_INPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
632 pllfreq = pllfreq * (UTILS_PLLInitStruct->PLLN & (RCC_PLLCFGR_PLLN >> RCC_PLLCFGR_PLLN_Pos)); in UTILS_GetPLLOutputFrequency()
[all …]
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_ll_utils.c299 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSI() local
312 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
332 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
363 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSI48() local
372 pllfreq = UTILS_GetPLLOutputFrequency(HSI48_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI48()
388 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI48()
424 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSE() local
441 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
472 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
503 uint32_t pllfreq = 0U; in UTILS_GetPLLOutputFrequency() local
[all …]
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_ll_utils.c487 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSI() local
493 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
510 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
544 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSE() local
554 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
582 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
613 uint32_t pllfreq = 0U; in UTILS_GetPLLOutputFrequency() local
622pllfreq = PLL_InputFrequency / (UTILS_PLLInitStruct->PLLM & (RCC_PLLCFGR_PLLM >> RCC_PLLCFGR_PLLM_… in UTILS_GetPLLOutputFrequency()
623 assert_param(IS_LL_UTILS_PLLVCO_INPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
626 pllfreq = pllfreq * (UTILS_PLLInitStruct->PLLN & (RCC_PLLCFGR_PLLN >> RCC_PLLCFGR_PLLN_Pos)); in UTILS_GetPLLOutputFrequency()
[all …]
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_ll_utils.c326 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
332 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
348 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
388 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
399 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
426 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
458 uint32_t pllfreq; in UTILS_GetPLLOutputFrequency() local
469 pllfreq = PLL_InputFrequency * (PLLMulTable[UTILS_PLLInitStruct->PLLMul >> RCC_CFGR_PLLMUL_Pos]); in UTILS_GetPLLOutputFrequency()
470 assert_param(IS_LL_UTILS_PLLVCO_OUTPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
474 pllfreq = pllfreq / ((UTILS_PLLInitStruct->PLLDiv >> RCC_CFGR_PLLDIV_Pos)+1U); in UTILS_GetPLLOutputFrequency()
[all …]
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_ll_utils.c337 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSI() local
343 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
359 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
396 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSE() local
406 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
433 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
464 uint32_t pllfreq = 0U; in UTILS_GetPLLOutputFrequency() local
475 pllfreq = PLL_InputFrequency * (PLLMulTable[UTILS_PLLInitStruct->PLLMul >> RCC_CFGR_PLLMUL_Pos]); in UTILS_GetPLLOutputFrequency()
476 assert_param(IS_LL_UTILS_PLLVCO_OUTPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
480 pllfreq = pllfreq / ((UTILS_PLLInitStruct->PLLDiv >> RCC_CFGR_PLLDIV_Pos)+1U); in UTILS_GetPLLOutputFrequency()
[all …]
/hal_stm32-latest/stm32cube/stm32n6xx/drivers/src/
Dstm32n6xx_ll_utils.c252 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
274 pllfreq = LL_RCC_CalcPLLClockFreq(hsi_clk, pUTILS_PLLInitStruct->PLLM, in LL_PLL_ConfigSystemClock_HSI()
278 …assert_param(IS_LL_UTILS_PLLVCO_OUTPUT(pllfreq * pUTILS_PLLInitStruct->PLLP1 * pUTILS_PLLInitStruc… in LL_PLL_ConfigSystemClock_HSI()
298 status = UTILS_EnablePLL1AndSwitchSystem(pllfreq, pUTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
339 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_MSI() local
358 pllfreq = LL_RCC_CalcPLLClockFreq(MSI_VALUE, pUTILS_PLLInitStruct->PLLM, in LL_PLL_ConfigSystemClock_MSI()
363 …assert_param(IS_LL_UTILS_PLLVCO_OUTPUT(pllfreq * pUTILS_PLLInitStruct->PLLP1 * pUTILS_PLLInitStruc… in LL_PLL_ConfigSystemClock_MSI()
383 status = UTILS_EnablePLL1AndSwitchSystem(pllfreq, pUTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_MSI()
429 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
451 pllfreq = LL_RCC_CalcPLLClockFreq(HSEFrequency, pUTILS_PLLInitStruct->PLLM, in LL_PLL_ConfigSystemClock_HSE()
[all …]
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_ll_utils.c312 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSI() local
325 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
345 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
381 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSE() local
398 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
429 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
460 uint32_t pllfreq = 0U; in UTILS_GetPLLOutputFrequency() local
469pllfreq = __LL_RCC_CALC_PLLCLK_FREQ(PLL_InputFrequency, UTILS_PLLInitStruct->PLLMul, UTILS_PLLInit… in UTILS_GetPLLOutputFrequency()
471pllfreq = __LL_RCC_CALC_PLLCLK_FREQ(PLL_InputFrequency / (UTILS_PLLInitStruct->Prediv + 1U), UTILS… in UTILS_GetPLLOutputFrequency()
473 assert_param(IS_LL_UTILS_PLL_FREQUENCY(pllfreq)); in UTILS_GetPLLOutputFrequency()
[all …]
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/src/
Dstm32u0xx_ll_utils.c575 uint32_t pllfreq = 0U; in UTILS_GetPLLOutputFrequency() local
584 pllfreq = PLL_InputFrequency / (((UTILS_PLLInitStruct->PLLM >> RCC_PLLCFGR_PLLM_Pos) + 1U)); in UTILS_GetPLLOutputFrequency()
585 assert_param(IS_LL_UTILS_PLLVCO_INPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
588 pllfreq = pllfreq * (UTILS_PLLInitStruct->PLLN & (RCC_PLLCFGR_PLLN >> RCC_PLLCFGR_PLLN_Pos)); in UTILS_GetPLLOutputFrequency()
589 assert_param(IS_LL_UTILS_PLLVCO_OUTPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
592 pllfreq = pllfreq / ((UTILS_PLLInitStruct->PLLR >> RCC_PLLCFGR_PLLR_Pos) + 1U); in UTILS_GetPLLOutputFrequency()
593 assert_param(IS_LL_UTILS_PLL_FREQUENCY(pllfreq)); in UTILS_GetPLLOutputFrequency()
595 return pllfreq; in UTILS_GetPLLOutputFrequency()
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/src/
Dstm32h7rsxx_ll_utils.c330 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSI() local
361 pllfreq = UTILS_GetPLLOutputFrequency(hsi_clk, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
386 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
424 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_CSI() local
452 pllfreq = UTILS_GetPLLOutputFrequency(CSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_CSI()
477 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_CSI()
520 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
550 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
587 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
720 uint32_t pllfreq; in UTILS_GetPLLOutputFrequency() local
[all …]
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_ll_utils.c660 uint32_t pllfreq; in UTILS_GetPLLOutputFrequency() local
669 pllfreq = PLL_InputFrequency / (((UTILS_PLLInitStruct->PLLM >> RCC_PLLCFGR_PLLM_Pos) + 1U)); in UTILS_GetPLLOutputFrequency()
670 assert_param(IS_LL_UTILS_PLLVCO_INPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
673 pllfreq = pllfreq * (UTILS_PLLInitStruct->PLLN & (RCC_PLLCFGR_PLLN >> RCC_PLLCFGR_PLLN_Pos)); in UTILS_GetPLLOutputFrequency()
674 assert_param(IS_LL_UTILS_PLLVCO_OUTPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
677 pllfreq = pllfreq / ((UTILS_PLLInitStruct->PLLR >> RCC_PLLCFGR_PLLR_Pos) + 1U); in UTILS_GetPLLOutputFrequency()
678 assert_param(IS_LL_UTILS_PLL_FREQUENCY(pllfreq)); in UTILS_GetPLLOutputFrequency()
680 return pllfreq; in UTILS_GetPLLOutputFrequency()
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_ll_utils.c623 uint32_t pllfreq; in UTILS_GetPLLOutputFrequency() local
632 pllfreq = PLL_InputFrequency / (((UTILS_PLLInitStruct->PLLM >> RCC_PLLCFGR_PLLM_Pos) + 1U)); in UTILS_GetPLLOutputFrequency()
633 assert_param(IS_LL_UTILS_PLLVCO_INPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
636 pllfreq = pllfreq * (UTILS_PLLInitStruct->PLLN & (RCC_PLLCFGR_PLLN >> RCC_PLLCFGR_PLLN_Pos)); in UTILS_GetPLLOutputFrequency()
637 assert_param(IS_LL_UTILS_PLLVCO_OUTPUT(pllfreq)); in UTILS_GetPLLOutputFrequency()
640 pllfreq = pllfreq / ((UTILS_PLLInitStruct->PLLR >> RCC_PLLCFGR_PLLR_Pos) + 1U); in UTILS_GetPLLOutputFrequency()
641 assert_param(IS_LL_UTILS_PLL_FREQUENCY(pllfreq)); in UTILS_GetPLLOutputFrequency()
643 return pllfreq; in UTILS_GetPLLOutputFrequency()
/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_ll_utils.c368 uint32_t pllfreq = 0U; in LL_PLL_ConfigSystemClock_HSI() local
381 pllfreq = UTILS_GetPLLOutputFrequency(HSI_VALUE, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
397 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
540 uint32_t pllfreq = 0U; in UTILS_GetPLLOutputFrequency() local
547pllfreq = __LL_RCC_CALC_PLLCLK_FREQ(PLL_InputFrequency / (UTILS_PLLInitStruct->Prediv + 1U), UTILS… in UTILS_GetPLLOutputFrequency()
549pllfreq = __LL_RCC_CALC_PLLCLK_FREQ(PLL_InputFrequency / ((UTILS_PLLInitStruct->Prediv >> RCC_CFGR… in UTILS_GetPLLOutputFrequency()
551 assert_param(IS_LL_UTILS_PLL_FREQUENCY(pllfreq)); in UTILS_GetPLLOutputFrequency()
553 return pllfreq; in UTILS_GetPLLOutputFrequency()
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_ll_utils.c508 uint32_t pllfreq, hsi_clk; in LL_PLL_ConfigSystemClock_HSI() local
537 pllfreq = UTILS_GetPLLOutputFrequency(hsi_clk, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSI()
561 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSI()
604 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
633 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, UTILS_PLLInitStruct); in LL_PLL_ConfigSystemClock_HSE()
668 status = UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
922 uint32_t pllfreq; local
930pllfreq = UTILS_CalcPLLClockFreq(PLL_InputFrequency, UTILS_PLLInitStruct->PLLM, UTILS_PLLInitStruc…
932 return pllfreq;
/hal_stm32-latest/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_ll_utils.c272 uint32_t pllfreq; in LL_PLL_ConfigSystemClock_HSE() local
438 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, &UTILS_PLLsInitStruct->PLL3); in LL_PLL_ConfigSystemClock_HSE()
441 pllfreq = UTILS_GetPLLOutputFrequency(HSEFrequency, &UTILS_PLLsInitStruct->PLL1); in LL_PLL_ConfigSystemClock_HSE()
446 UTILS_EnablePLLAndSwitchSystem(pllfreq, UTILS_ClkInitStruct); in LL_PLL_ConfigSystemClock_HSE()
493 uint32_t pllfreq; in UTILS_GetPLLOutputFrequency() local
498 pllfreq = LL_RCC_CalcPLLClockFreq(PLL_InputFrequency, in UTILS_GetPLLOutputFrequency()
504 return pllfreq; in UTILS_GetPLLOutputFrequency()