/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1175/drivers/ |
D | fsl_clock.c | 762 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 104UL; /* MHz */ in CLOCK_CalcArmPllFreq() local 763 assert((freqInMhz <= refFreq) && (freqInMhz >= 156UL)); in CLOCK_CalcArmPllFreq() 774 if (freqInMhz >= refFreq) in CLOCK_CalcArmPllFreq() 779 else if (freqInMhz >= (refFreq >> 1)) in CLOCK_CalcArmPllFreq() 784 else if (freqInMhz >= (refFreq >> 2)) in CLOCK_CalcArmPllFreq() 789 else if (freqInMhz >= (refFreq >> 3)) in CLOCK_CalcArmPllFreq() 794 else if (freqInMhz > (refFreq >> 4)) in CLOCK_CalcArmPllFreq() 822 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 54UL; /* MHz */ in CLOCK_CalcAvPllFreq() local 824 assert((freqInMhz <= refFreq) && (freqInMhz > 20UL)); in CLOCK_CalcAvPllFreq() 839 if (freqInMhz >= refFreq) in CLOCK_CalcAvPllFreq() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1176/drivers/ |
D | fsl_clock.c | 762 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 104UL; /* MHz */ in CLOCK_CalcArmPllFreq() local 763 assert((freqInMhz <= refFreq) && (freqInMhz >= 156UL)); in CLOCK_CalcArmPllFreq() 774 if (freqInMhz >= refFreq) in CLOCK_CalcArmPllFreq() 779 else if (freqInMhz >= (refFreq >> 1)) in CLOCK_CalcArmPllFreq() 784 else if (freqInMhz >= (refFreq >> 2)) in CLOCK_CalcArmPllFreq() 789 else if (freqInMhz >= (refFreq >> 3)) in CLOCK_CalcArmPllFreq() 794 else if (freqInMhz > (refFreq >> 4)) in CLOCK_CalcArmPllFreq() 822 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 54UL; /* MHz */ in CLOCK_CalcAvPllFreq() local 824 assert((freqInMhz <= refFreq) && (freqInMhz > 20UL)); in CLOCK_CalcAvPllFreq() 839 if (freqInMhz >= refFreq) in CLOCK_CalcAvPllFreq() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1173/drivers/ |
D | fsl_clock.c | 762 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 104UL; /* MHz */ in CLOCK_CalcArmPllFreq() local 763 assert((freqInMhz <= refFreq) && (freqInMhz >= 156UL)); in CLOCK_CalcArmPllFreq() 774 if (freqInMhz >= refFreq) in CLOCK_CalcArmPllFreq() 779 else if (freqInMhz >= (refFreq >> 1)) in CLOCK_CalcArmPllFreq() 784 else if (freqInMhz >= (refFreq >> 2)) in CLOCK_CalcArmPllFreq() 789 else if (freqInMhz >= (refFreq >> 3)) in CLOCK_CalcArmPllFreq() 794 else if (freqInMhz > (refFreq >> 4)) in CLOCK_CalcArmPllFreq() 822 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 54UL; /* MHz */ in CLOCK_CalcAvPllFreq() local 824 assert((freqInMhz <= refFreq) && (freqInMhz > 20UL)); in CLOCK_CalcAvPllFreq() 839 if (freqInMhz >= refFreq) in CLOCK_CalcAvPllFreq() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1172/drivers/ |
D | fsl_clock.c | 762 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 104UL; /* MHz */ in CLOCK_CalcArmPllFreq() local 763 assert((freqInMhz <= refFreq) && (freqInMhz >= 156UL)); in CLOCK_CalcArmPllFreq() 774 if (freqInMhz >= refFreq) in CLOCK_CalcArmPllFreq() 779 else if (freqInMhz >= (refFreq >> 1)) in CLOCK_CalcArmPllFreq() 784 else if (freqInMhz >= (refFreq >> 2)) in CLOCK_CalcArmPllFreq() 789 else if (freqInMhz >= (refFreq >> 3)) in CLOCK_CalcArmPllFreq() 794 else if (freqInMhz > (refFreq >> 4)) in CLOCK_CalcArmPllFreq() 822 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 54UL; /* MHz */ in CLOCK_CalcAvPllFreq() local 824 assert((freqInMhz <= refFreq) && (freqInMhz > 20UL)); in CLOCK_CalcAvPllFreq() 839 if (freqInMhz >= refFreq) in CLOCK_CalcAvPllFreq() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1171/drivers/ |
D | fsl_clock.c | 762 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 104UL; /* MHz */ in CLOCK_CalcArmPllFreq() local 763 assert((freqInMhz <= refFreq) && (freqInMhz >= 156UL)); in CLOCK_CalcArmPllFreq() 774 if (freqInMhz >= refFreq) in CLOCK_CalcArmPllFreq() 779 else if (freqInMhz >= (refFreq >> 1)) in CLOCK_CalcArmPllFreq() 784 else if (freqInMhz >= (refFreq >> 2)) in CLOCK_CalcArmPllFreq() 789 else if (freqInMhz >= (refFreq >> 3)) in CLOCK_CalcArmPllFreq() 794 else if (freqInMhz > (refFreq >> 4)) in CLOCK_CalcArmPllFreq() 822 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 54UL; /* MHz */ in CLOCK_CalcAvPllFreq() local 824 assert((freqInMhz <= refFreq) && (freqInMhz > 20UL)); in CLOCK_CalcAvPllFreq() 839 if (freqInMhz >= refFreq) in CLOCK_CalcAvPllFreq() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKE14F16/drivers/ |
D | fsl_clock.c | 885 uint32_t CLOCK_GetSysPllMultDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *mult, uint8_t *pred… in CLOCK_GetSysPllMultDiv() argument 911 if ((refFreq < SCG_SPLL_REF_MIN) || in CLOCK_GetSysPllMultDiv() 912 (refFreq > (SCG_SPLL_REF_MAX * (SCG_SPLL_PREDIV_MAX_VALUE + SCG_SPLL_PREDIV_BASE_VALUE)))) in CLOCK_GetSysPllMultDiv() 918 prediv_max = (uint8_t)(refFreq / SCG_SPLL_REF_MIN); in CLOCK_GetSysPllMultDiv() 919 prediv_min = (uint8_t)((refFreq + SCG_SPLL_REF_MAX - 1UL) / SCG_SPLL_REF_MAX); in CLOCK_GetSysPllMultDiv() 932 ref_div = refFreq / prediv_cur; in CLOCK_GetSysPllMultDiv() 978 return ((refFreq / ret_prediv) * ret_mult) / 2U; in CLOCK_GetSysPllMultDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKE18F16/drivers/ |
D | fsl_clock.c | 885 uint32_t CLOCK_GetSysPllMultDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *mult, uint8_t *pred… in CLOCK_GetSysPllMultDiv() argument 911 if ((refFreq < SCG_SPLL_REF_MIN) || in CLOCK_GetSysPllMultDiv() 912 (refFreq > (SCG_SPLL_REF_MAX * (SCG_SPLL_PREDIV_MAX_VALUE + SCG_SPLL_PREDIV_BASE_VALUE)))) in CLOCK_GetSysPllMultDiv() 918 prediv_max = (uint8_t)(refFreq / SCG_SPLL_REF_MIN); in CLOCK_GetSysPllMultDiv() 919 prediv_min = (uint8_t)((refFreq + SCG_SPLL_REF_MAX - 1UL) / SCG_SPLL_REF_MAX); in CLOCK_GetSysPllMultDiv() 932 ref_div = refFreq / prediv_cur; in CLOCK_GetSysPllMultDiv() 978 return ((refFreq / ret_prediv) * ret_mult) / 2U; in CLOCK_GetSysPllMultDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKE16F16/drivers/ |
D | fsl_clock.c | 885 uint32_t CLOCK_GetSysPllMultDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *mult, uint8_t *pred… in CLOCK_GetSysPllMultDiv() argument 911 if ((refFreq < SCG_SPLL_REF_MIN) || in CLOCK_GetSysPllMultDiv() 912 (refFreq > (SCG_SPLL_REF_MAX * (SCG_SPLL_PREDIV_MAX_VALUE + SCG_SPLL_PREDIV_BASE_VALUE)))) in CLOCK_GetSysPllMultDiv() 918 prediv_max = (uint8_t)(refFreq / SCG_SPLL_REF_MIN); in CLOCK_GetSysPllMultDiv() 919 prediv_min = (uint8_t)((refFreq + SCG_SPLL_REF_MAX - 1UL) / SCG_SPLL_REF_MAX); in CLOCK_GetSysPllMultDiv() 932 ref_div = refFreq / prediv_cur; in CLOCK_GetSysPllMultDiv() 978 return ((refFreq / ret_prediv) * ret_mult) / 2U; in CLOCK_GetSysPllMultDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/K32L2A41A/drivers/ |
D | fsl_clock.c | 926 uint32_t CLOCK_GetSysPllMultDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *mult, uint8_t *pred… in CLOCK_GetSysPllMultDiv() argument 952 if ((refFreq < SCG_SPLL_REF_MIN) || in CLOCK_GetSysPllMultDiv() 953 (refFreq > (SCG_SPLL_REF_MAX * (SCG_SPLL_PREDIV_MAX_VALUE + SCG_SPLL_PREDIV_BASE_VALUE)))) in CLOCK_GetSysPllMultDiv() 959 prediv_max = (uint8_t)(refFreq / SCG_SPLL_REF_MIN); in CLOCK_GetSysPllMultDiv() 960 prediv_min = (uint8_t)((refFreq + SCG_SPLL_REF_MAX - 1UL) / SCG_SPLL_REF_MAX); in CLOCK_GetSysPllMultDiv() 973 ref_div = refFreq / prediv_cur; in CLOCK_GetSysPllMultDiv() 1019 return ((refFreq / ret_prediv) * ret_mult) / 2U; in CLOCK_GetSysPllMultDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/K32L2A31A/drivers/ |
D | fsl_clock.c | 926 uint32_t CLOCK_GetSysPllMultDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *mult, uint8_t *pred… in CLOCK_GetSysPllMultDiv() argument 952 if ((refFreq < SCG_SPLL_REF_MIN) || in CLOCK_GetSysPllMultDiv() 953 (refFreq > (SCG_SPLL_REF_MAX * (SCG_SPLL_PREDIV_MAX_VALUE + SCG_SPLL_PREDIV_BASE_VALUE)))) in CLOCK_GetSysPllMultDiv() 959 prediv_max = (uint8_t)(refFreq / SCG_SPLL_REF_MIN); in CLOCK_GetSysPllMultDiv() 960 prediv_min = (uint8_t)((refFreq + SCG_SPLL_REF_MAX - 1UL) / SCG_SPLL_REF_MAX); in CLOCK_GetSysPllMultDiv() 973 ref_div = refFreq / prediv_cur; in CLOCK_GetSysPllMultDiv() 1019 return ((refFreq / ret_prediv) * ret_mult) / 2U; in CLOCK_GetSysPllMultDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1165/drivers/ |
D | fsl_clock.c | 768 uint32_t refFreq = ((XTAL_FREQ / 1000000UL) * 104UL / 4UL); /* MHz */ in CLOCK_CalcArmPllFreq() local 769 assert((freqInMhz <= refFreq) && (freqInMhz >= 156UL)); in CLOCK_CalcArmPllFreq() 779 if (freqInMhz >= refFreq) in CLOCK_CalcArmPllFreq() 784 else if (freqInMhz >= (refFreq >> 1UL)) in CLOCK_CalcArmPllFreq() 813 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 54UL; /* MHz */ in CLOCK_CalcAvPllFreq() local 815 assert((freqInMhz <= refFreq) && (freqInMhz > 20UL)); in CLOCK_CalcAvPllFreq() 830 if (freqInMhz >= refFreq) in CLOCK_CalcAvPllFreq() 836 else if (freqInMhz >= (refFreq >> 1)) in CLOCK_CalcAvPllFreq() 842 else if (freqInMhz >= (refFreq >> 2)) in CLOCK_CalcAvPllFreq() 848 else if (freqInMhz >= (refFreq >> 3)) in CLOCK_CalcAvPllFreq() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1166/drivers/ |
D | fsl_clock.c | 768 uint32_t refFreq = ((XTAL_FREQ / 1000000UL) * 104UL / 4UL); /* MHz */ in CLOCK_CalcArmPllFreq() local 769 assert((freqInMhz <= refFreq) && (freqInMhz >= 156UL)); in CLOCK_CalcArmPllFreq() 779 if (freqInMhz >= refFreq) in CLOCK_CalcArmPllFreq() 784 else if (freqInMhz >= (refFreq >> 1UL)) in CLOCK_CalcArmPllFreq() 813 uint32_t refFreq = (XTAL_FREQ / 1000000UL) * 54UL; /* MHz */ in CLOCK_CalcAvPllFreq() local 815 assert((freqInMhz <= refFreq) && (freqInMhz > 20UL)); in CLOCK_CalcAvPllFreq() 830 if (freqInMhz >= refFreq) in CLOCK_CalcAvPllFreq() 836 else if (freqInMhz >= (refFreq >> 1)) in CLOCK_CalcAvPllFreq() 842 else if (freqInMhz >= (refFreq >> 2)) in CLOCK_CalcAvPllFreq() 848 else if (freqInMhz >= (refFreq >> 3)) in CLOCK_CalcAvPllFreq() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKL25Z4/drivers/ |
D | fsl_clock.c | 661 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 687 if ((refFreq < FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 688 …(refFreq > (FSL_FEATURE_MCG_PLL_REF_MAX * (FSL_FEATURE_MCG_PLL_PRDIV_MAX + FSL_FEATURE_MCG_PLL_PRD… in CLOCK_CalcPllDiv() 694 prdiv_max = refFreq / FSL_FEATURE_MCG_PLL_REF_MIN; in CLOCK_CalcPllDiv() 695 prdiv_min = (refFreq + FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / FSL_FEATURE_MCG_PLL_REF_MAX; in CLOCK_CalcPllDiv() 701 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 748 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKW22D5/drivers/ |
D | fsl_clock.c | 714 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 740 if ((refFreq < FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 741 …(refFreq > (FSL_FEATURE_MCG_PLL_REF_MAX * (FSL_FEATURE_MCG_PLL_PRDIV_MAX + FSL_FEATURE_MCG_PLL_PRD… in CLOCK_CalcPllDiv() 747 prdiv_max = refFreq / FSL_FEATURE_MCG_PLL_REF_MIN; in CLOCK_CalcPllDiv() 748 prdiv_min = (refFreq + FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / FSL_FEATURE_MCG_PLL_REF_MAX; in CLOCK_CalcPllDiv() 754 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 801 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKW24D5/drivers/ |
D | fsl_clock.c | 714 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 740 if ((refFreq < FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 741 …(refFreq > (FSL_FEATURE_MCG_PLL_REF_MAX * (FSL_FEATURE_MCG_PLL_PRDIV_MAX + FSL_FEATURE_MCG_PLL_PRD… in CLOCK_CalcPllDiv() 747 prdiv_max = refFreq / FSL_FEATURE_MCG_PLL_REF_MIN; in CLOCK_CalcPllDiv() 748 prdiv_min = (refFreq + FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / FSL_FEATURE_MCG_PLL_REF_MAX; in CLOCK_CalcPllDiv() 754 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 801 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKV56F24/drivers/ |
D | fsl_clock.c | 830 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 856 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 857 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 864 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 866 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 874 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 922 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKV58F24/drivers/ |
D | fsl_clock.c | 830 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 856 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 857 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 864 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 866 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 874 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 922 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKV31F51212/drivers/ |
D | fsl_clock.c | 889 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 915 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 916 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 923 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 925 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 931 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 979 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKV31F25612/drivers/ |
D | fsl_clock.c | 874 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 900 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 901 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 908 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 910 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 916 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 964 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK22F25612/drivers/ |
D | fsl_clock.c | 925 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 951 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 952 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 959 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 961 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 967 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 1015 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK24F12/drivers/ |
D | fsl_clock.c | 894 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 920 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 921 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 928 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 930 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 936 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 984 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK22F12/drivers/ |
D | fsl_clock.c | 887 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 913 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 914 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 921 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 923 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 929 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 977 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK80F25615/drivers/ |
D | fsl_clock.c | 944 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 970 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 971 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 978 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 980 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 988 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 1036 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK82F25615/drivers/ |
D | fsl_clock.c | 944 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 970 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 971 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 978 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 980 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 988 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 1036 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK22F51212/drivers/ |
D | fsl_clock.c | 937 uint32_t CLOCK_CalcPllDiv(uint32_t refFreq, uint32_t desireFreq, uint8_t *prdiv, uint8_t *vdiv) in CLOCK_CalcPllDiv() argument 963 if ((refFreq < (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN) || in CLOCK_CalcPllDiv() 964 (refFreq > ((uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX * in CLOCK_CalcPllDiv() 971 prdiv_max = (uint8_t)(refFreq / (uint32_t)FSL_FEATURE_MCG_PLL_REF_MIN); in CLOCK_CalcPllDiv() 973 …(uint8_t)((refFreq + (uint32_t)FSL_FEATURE_MCG_PLL_REF_MAX - 1U) / (uint32_t)FSL_FEATURE_MCG_PLL_R… in CLOCK_CalcPllDiv() 979 ref_div = refFreq / prdiv_cur; in CLOCK_CalcPllDiv() 1027 ret_freq = (refFreq / ret_prdiv) * ret_vdiv; in CLOCK_CalcPllDiv()
|