/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKL25Z4/drivers/ |
D | fsl_clock.c | 668 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 703 vdiv_cur = desireFreq / ref_div; in CLOCK_CalcPllDiv() 705 …if ((vdiv_cur < FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U) || (vdiv_cur > FSL_FEATURE_MCG_PLL_VDIV_BASE +… in CLOCK_CalcPllDiv() 711 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 713 if (vdiv_cur >= FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 718 *vdiv = vdiv_cur - FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 726 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 729 vdiv_cur++; in CLOCK_CalcPllDiv() 730 if (vdiv_cur <= (FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 738 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKW22D5/drivers/ |
D | fsl_clock.c | 721 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 756 vdiv_cur = desireFreq / ref_div; in CLOCK_CalcPllDiv() 758 …if ((vdiv_cur < FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U) || (vdiv_cur > FSL_FEATURE_MCG_PLL_VDIV_BASE +… in CLOCK_CalcPllDiv() 764 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 766 if (vdiv_cur >= FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 771 *vdiv = vdiv_cur - FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 779 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 782 vdiv_cur++; in CLOCK_CalcPllDiv() 783 if (vdiv_cur <= (FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 791 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKW24D5/drivers/ |
D | fsl_clock.c | 721 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 756 vdiv_cur = desireFreq / ref_div; in CLOCK_CalcPllDiv() 758 …if ((vdiv_cur < FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U) || (vdiv_cur > FSL_FEATURE_MCG_PLL_VDIV_BASE +… in CLOCK_CalcPllDiv() 764 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 766 if (vdiv_cur >= FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 771 *vdiv = vdiv_cur - FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 779 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 782 vdiv_cur++; in CLOCK_CalcPllDiv() 783 if (vdiv_cur <= (FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 791 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKV56F24/drivers/ |
D | fsl_clock.c | 837 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 876 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 878 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 879 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 885 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 887 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 892 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 900 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 903 vdiv_cur++; in CLOCK_CalcPllDiv() 904 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKV58F24/drivers/ |
D | fsl_clock.c | 837 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 876 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 878 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 879 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 885 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 887 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 892 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 900 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 903 vdiv_cur++; in CLOCK_CalcPllDiv() 904 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKV31F51212/drivers/ |
D | fsl_clock.c | 896 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 933 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 935 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 936 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 942 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 944 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 949 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 957 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 960 vdiv_cur++; in CLOCK_CalcPllDiv() 961 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKV31F25612/drivers/ |
D | fsl_clock.c | 881 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 918 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 920 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 921 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 927 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 929 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 934 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 942 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 945 vdiv_cur++; in CLOCK_CalcPllDiv() 946 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK22F25612/drivers/ |
D | fsl_clock.c | 932 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 969 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 971 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 972 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 978 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 980 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 985 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 993 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 996 vdiv_cur++; in CLOCK_CalcPllDiv() 997 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK24F12/drivers/ |
D | fsl_clock.c | 901 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 938 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 940 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 941 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 947 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 949 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 954 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 962 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 965 vdiv_cur++; in CLOCK_CalcPllDiv() 966 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK22F12/drivers/ |
D | fsl_clock.c | 894 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 931 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 933 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 934 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 940 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 942 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 947 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 955 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 958 vdiv_cur++; in CLOCK_CalcPllDiv() 959 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK80F25615/drivers/ |
D | fsl_clock.c | 951 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 990 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 992 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 993 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 999 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1001 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1006 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1014 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1017 vdiv_cur++; in CLOCK_CalcPllDiv() 1018 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK82F25615/drivers/ |
D | fsl_clock.c | 951 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 990 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 992 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 993 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 999 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1001 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1006 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1014 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1017 vdiv_cur++; in CLOCK_CalcPllDiv() 1018 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK22F51212/drivers/ |
D | fsl_clock.c | 944 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 981 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 983 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 984 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 990 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 992 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 997 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1005 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1008 vdiv_cur++; in CLOCK_CalcPllDiv() 1009 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK64F12/drivers/ |
D | fsl_clock.c | 911 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 948 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 950 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 951 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 957 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 959 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 964 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 972 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 975 vdiv_cur++; in CLOCK_CalcPllDiv() 976 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK63F12/drivers/ |
D | fsl_clock.c | 900 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 937 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 939 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 940 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 946 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 948 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 953 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 961 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 964 vdiv_cur++; in CLOCK_CalcPllDiv() 965 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK26F18/drivers/ |
D | fsl_clock.c | 1170 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 1209 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 1211 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 1212 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 1218 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1220 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1225 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1233 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1236 vdiv_cur++; in CLOCK_CalcPllDiv() 1237 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK27FA15/drivers/ |
D | fsl_clock.c | 1129 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 1168 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 1170 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 1171 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 1177 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1179 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1184 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1192 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1195 vdiv_cur++; in CLOCK_CalcPllDiv() 1196 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK66F18/drivers/ |
D | fsl_clock.c | 1169 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 1208 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 1210 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 1211 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 1217 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1219 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1224 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1232 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1235 vdiv_cur++; in CLOCK_CalcPllDiv() 1236 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK65F18/drivers/ |
D | fsl_clock.c | 1170 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 1209 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 1211 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 1212 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 1218 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1220 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1225 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1233 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1236 vdiv_cur++; in CLOCK_CalcPllDiv() 1237 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK28FA15/drivers/ |
D | fsl_clock.c | 1129 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 1168 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 1170 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 1171 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 1177 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1179 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1184 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1192 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1195 vdiv_cur++; in CLOCK_CalcPllDiv() 1196 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKM33ZA5/drivers/ |
D | fsl_clock.c | 1080 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 1121 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 1123 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 1124 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 1130 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1132 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1137 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1149 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1152 vdiv_cur++; in CLOCK_CalcPllDiv() 1153 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MKM14ZA5/drivers/ |
D | fsl_clock.c | 1080 uint8_t vdiv_cur; /* VDIV value for iteration. */ in CLOCK_CalcPllDiv() local 1121 vdiv_cur = (uint8_t)(desireFreq / ref_div); in CLOCK_CalcPllDiv() 1123 if ((vdiv_cur < ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE - 1U)) || in CLOCK_CalcPllDiv() 1124 (vdiv_cur > (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() 1130 ret_freq = vdiv_cur * ref_div; in CLOCK_CalcPllDiv() 1132 if (vdiv_cur >= (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE) in CLOCK_CalcPllDiv() 1137 *vdiv = vdiv_cur - (uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE; in CLOCK_CalcPllDiv() 1149 ret_vdiv = vdiv_cur; in CLOCK_CalcPllDiv() 1152 vdiv_cur++; in CLOCK_CalcPllDiv() 1153 if (vdiv_cur <= ((uint8_t)FSL_FEATURE_MCG_PLL_VDIV_BASE + 31U)) in CLOCK_CalcPllDiv() [all …]
|