/hal_nxp-3.5.0/imx/drivers/ |
D | uart_imx.c | 115 uint32_t numerator; in UART_SetBaudRate() local 122 numerator = clockRate; in UART_SetBaudRate() 129 denominator = numerator % denominator; in UART_SetBaudRate() 130 numerator = divisor; in UART_SetBaudRate() 133 numerator = clockRate / divisor; in UART_SetBaudRate() 138 if ((numerator > (UART_UBIR_INC_MASK * 7)) || in UART_SetBaudRate() 141 uint32_t m = (numerator - 1) / (UART_UBIR_INC_MASK * 7) + 1; in UART_SetBaudRate() 144 numerator /= max; in UART_SetBaudRate() 146 if (0 == numerator) in UART_SetBaudRate() 147 numerator = 1; in UART_SetBaudRate() [all …]
|
D | ccm_analog_imx6sx.c | 92 float numerator, denomitor; in CCM_ANALOG_GetPllFreq() local 141 numerator = CCM_ANALOG_PLL_AUDIO_NUM & CCM_ANALOG_PLL_AUDIO_NUM_A_MASK; in CCM_ANALOG_GetPllFreq() 143 hz = (uint32_t)(24000000 * (divSelect + (numerator / denomitor))); in CCM_ANALOG_GetPllFreq() 150 numerator = CCM_ANALOG_PLL_VIDEO_NUM & CCM_ANALOG_PLL_VIDEO_NUM_A_MASK; in CCM_ANALOG_GetPllFreq() 152 hz = (uint32_t)(24000000 * (divSelect + (numerator / denomitor))); in CCM_ANALOG_GetPllFreq()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/FastMathFunctions/ |
D | arm_divide_q15.c | 60 arm_status arm_divide_q15(q15_t numerator, in arm_divide_q15() argument 71 sign = (numerator>>15) ^ (denominator>>15); in arm_divide_q15() 86 numerator = abs(numerator); in arm_divide_q15() 89 temp = ((q31_t)numerator << 15) / ((q31_t)denominator); in arm_divide_q15()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC802/drivers/ |
D | rom_api.h | 43 int (*sidiv)(int numerator, int denominator); // Signed integer division 44 … unsigned (*uidiv)(unsigned numerator, unsigned denominator); // Unsigned integer division 45 …IDIV_RETURN_T (*sidivmod)(int numerator, int denominator); // Signed integer division w… 46 …UIDIV_RETURN_T (*uidivmod)(unsigned numerator, unsigned denominator); // Unsigned integer division…
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC804/drivers/ |
D | rom_api.h | 43 int (*sidiv)(int numerator, int denominator); // Signed integer division 44 … unsigned (*uidiv)(unsigned numerator, unsigned denominator); // Unsigned integer division 45 …IDIV_RETURN_T (*sidivmod)(int numerator, int denominator); // Signed integer division w… 46 …UIDIV_RETURN_T (*uidivmod)(unsigned numerator, unsigned denominator); // Unsigned integer division…
|
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/iuart/ |
D | fsl_uart.c | 354 uint32_t numerator = 0u; in UART_SetBaudRate() local 364 numerator = srcClock_Hz; in UART_SetBaudRate() 371 denominator = numerator % denominator; in UART_SetBaudRate() 372 numerator = divisor; in UART_SetBaudRate() 375 numerator = srcClock_Hz / divisor; in UART_SetBaudRate() 380 if ((numerator > (UART_UBIR_INC_MASK * 7U)) || (denominator > UART_UBIR_INC_MASK)) in UART_SetBaudRate() 382 uint32_t m = (numerator - 1U) / (UART_UBIR_INC_MASK * 7U) + 1U; in UART_SetBaudRate() 385 numerator /= max; in UART_SetBaudRate() 387 if (0U == numerator) in UART_SetBaudRate() 389 numerator = 1U; in UART_SetBaudRate() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1175/drivers/ |
D | fsl_clock.c | 687 …ANATOP_PllConfigure(kAI_Itf_Audio, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitAudioPll() 724 ANADIG_PLL->PLL_AUDIO_NUMERATOR = config->numerator; in CLOCK_GPC_SetAudioPllOutputFreq() 843 config->numerator = 0; in CLOCK_CalcAvPllFreq() 849 config->numerator = (config->denominator / 24UL) * (freqInMhz % 24UL); in CLOCK_CalcAvPllFreq() 855 config->numerator = (config->denominator / 12UL) * (freqInMhz % 12UL); in CLOCK_CalcAvPllFreq() 861 config->numerator = (config->denominator / 6UL) * (freqInMhz % 6UL); in CLOCK_CalcAvPllFreq() 867 config->numerator = (config->denominator / 3UL) * (freqInMhz % 3UL); in CLOCK_CalcAvPllFreq() 873 config->numerator = (config->denominator * 2UL / 3UL) * (freqInMhz * 2UL % 3UL); in CLOCK_CalcAvPllFreq() 879 config->numerator = (config->denominator * 4UL / 3UL) * (freqInMhz * 4UL % 3UL); in CLOCK_CalcAvPllFreq() 936 …ANATOP_PllConfigure(kAI_Itf_Video, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitVideoPll() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1176/drivers/ |
D | fsl_clock.c | 687 …ANATOP_PllConfigure(kAI_Itf_Audio, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitAudioPll() 724 ANADIG_PLL->PLL_AUDIO_NUMERATOR = config->numerator; in CLOCK_GPC_SetAudioPllOutputFreq() 843 config->numerator = 0; in CLOCK_CalcAvPllFreq() 849 config->numerator = (config->denominator / 24UL) * (freqInMhz % 24UL); in CLOCK_CalcAvPllFreq() 855 config->numerator = (config->denominator / 12UL) * (freqInMhz % 12UL); in CLOCK_CalcAvPllFreq() 861 config->numerator = (config->denominator / 6UL) * (freqInMhz % 6UL); in CLOCK_CalcAvPllFreq() 867 config->numerator = (config->denominator / 3UL) * (freqInMhz % 3UL); in CLOCK_CalcAvPllFreq() 873 config->numerator = (config->denominator * 2UL / 3UL) * (freqInMhz * 2UL % 3UL); in CLOCK_CalcAvPllFreq() 879 config->numerator = (config->denominator * 4UL / 3UL) * (freqInMhz * 4UL % 3UL); in CLOCK_CalcAvPllFreq() 936 …ANATOP_PllConfigure(kAI_Itf_Video, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitVideoPll() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1173/drivers/ |
D | fsl_clock.c | 687 …ANATOP_PllConfigure(kAI_Itf_Audio, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitAudioPll() 724 ANADIG_PLL->PLL_AUDIO_NUMERATOR = config->numerator; in CLOCK_GPC_SetAudioPllOutputFreq() 843 config->numerator = 0; in CLOCK_CalcAvPllFreq() 849 config->numerator = (config->denominator / 24UL) * (freqInMhz % 24UL); in CLOCK_CalcAvPllFreq() 855 config->numerator = (config->denominator / 12UL) * (freqInMhz % 12UL); in CLOCK_CalcAvPllFreq() 861 config->numerator = (config->denominator / 6UL) * (freqInMhz % 6UL); in CLOCK_CalcAvPllFreq() 867 config->numerator = (config->denominator / 3UL) * (freqInMhz % 3UL); in CLOCK_CalcAvPllFreq() 873 config->numerator = (config->denominator * 2UL / 3UL) * (freqInMhz * 2UL % 3UL); in CLOCK_CalcAvPllFreq() 879 config->numerator = (config->denominator * 4UL / 3UL) * (freqInMhz * 4UL % 3UL); in CLOCK_CalcAvPllFreq() 936 …ANATOP_PllConfigure(kAI_Itf_Video, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitVideoPll() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1165/drivers/ |
D | fsl_clock.c | 693 …ANATOP_PllConfigure(kAI_Itf_Audio, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitAudioPll() 730 ANADIG_PLL->PLL_AUDIO_NUMERATOR = config->numerator; in CLOCK_GPC_SetAudioPllOutputFreq() 834 config->numerator = 0; in CLOCK_CalcAvPllFreq() 840 config->numerator = (config->denominator / 24UL) * (freqInMhz % 24UL); in CLOCK_CalcAvPllFreq() 846 config->numerator = (config->denominator / 12UL) * (freqInMhz % 12UL); in CLOCK_CalcAvPllFreq() 852 config->numerator = (config->denominator / 6UL) * (freqInMhz % 6UL); in CLOCK_CalcAvPllFreq() 858 config->numerator = (config->denominator / 3UL) * (freqInMhz % 3UL); in CLOCK_CalcAvPllFreq() 864 config->numerator = (config->denominator * 2UL / 3UL) * (freqInMhz * 2UL % 3UL); in CLOCK_CalcAvPllFreq() 870 config->numerator = (config->denominator * 4UL / 3UL) * (freqInMhz * 4UL % 3UL); in CLOCK_CalcAvPllFreq() 927 …ANATOP_PllConfigure(kAI_Itf_Video, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitVideoPll() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1172/drivers/ |
D | fsl_clock.c | 687 …ANATOP_PllConfigure(kAI_Itf_Audio, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitAudioPll() 724 ANADIG_PLL->PLL_AUDIO_NUMERATOR = config->numerator; in CLOCK_GPC_SetAudioPllOutputFreq() 843 config->numerator = 0; in CLOCK_CalcAvPllFreq() 849 config->numerator = (config->denominator / 24UL) * (freqInMhz % 24UL); in CLOCK_CalcAvPllFreq() 855 config->numerator = (config->denominator / 12UL) * (freqInMhz % 12UL); in CLOCK_CalcAvPllFreq() 861 config->numerator = (config->denominator / 6UL) * (freqInMhz % 6UL); in CLOCK_CalcAvPllFreq() 867 config->numerator = (config->denominator / 3UL) * (freqInMhz % 3UL); in CLOCK_CalcAvPllFreq() 873 config->numerator = (config->denominator * 2UL / 3UL) * (freqInMhz * 2UL % 3UL); in CLOCK_CalcAvPllFreq() 879 config->numerator = (config->denominator * 4UL / 3UL) * (freqInMhz * 4UL % 3UL); in CLOCK_CalcAvPllFreq() 936 …ANATOP_PllConfigure(kAI_Itf_Video, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitVideoPll() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1166/drivers/ |
D | fsl_clock.c | 693 …ANATOP_PllConfigure(kAI_Itf_Audio, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitAudioPll() 730 ANADIG_PLL->PLL_AUDIO_NUMERATOR = config->numerator; in CLOCK_GPC_SetAudioPllOutputFreq() 834 config->numerator = 0; in CLOCK_CalcAvPllFreq() 840 config->numerator = (config->denominator / 24UL) * (freqInMhz % 24UL); in CLOCK_CalcAvPllFreq() 846 config->numerator = (config->denominator / 12UL) * (freqInMhz % 12UL); in CLOCK_CalcAvPllFreq() 852 config->numerator = (config->denominator / 6UL) * (freqInMhz % 6UL); in CLOCK_CalcAvPllFreq() 858 config->numerator = (config->denominator / 3UL) * (freqInMhz % 3UL); in CLOCK_CalcAvPllFreq() 864 config->numerator = (config->denominator * 2UL / 3UL) * (freqInMhz * 2UL % 3UL); in CLOCK_CalcAvPllFreq() 870 config->numerator = (config->denominator * 4UL / 3UL) * (freqInMhz * 4UL % 3UL); in CLOCK_CalcAvPllFreq() 927 …ANATOP_PllConfigure(kAI_Itf_Video, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitVideoPll() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1171/drivers/ |
D | fsl_clock.c | 687 …ANATOP_PllConfigure(kAI_Itf_Audio, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitAudioPll() 724 ANADIG_PLL->PLL_AUDIO_NUMERATOR = config->numerator; in CLOCK_GPC_SetAudioPllOutputFreq() 843 config->numerator = 0; in CLOCK_CalcAvPllFreq() 849 config->numerator = (config->denominator / 24UL) * (freqInMhz % 24UL); in CLOCK_CalcAvPllFreq() 855 config->numerator = (config->denominator / 12UL) * (freqInMhz % 12UL); in CLOCK_CalcAvPllFreq() 861 config->numerator = (config->denominator / 6UL) * (freqInMhz % 6UL); in CLOCK_CalcAvPllFreq() 867 config->numerator = (config->denominator / 3UL) * (freqInMhz % 3UL); in CLOCK_CalcAvPllFreq() 873 config->numerator = (config->denominator * 2UL / 3UL) * (freqInMhz * 2UL % 3UL); in CLOCK_CalcAvPllFreq() 879 config->numerator = (config->denominator * 4UL / 3UL) * (freqInMhz * 4UL % 3UL); in CLOCK_CalcAvPllFreq() 936 …ANATOP_PllConfigure(kAI_Itf_Video, config->loopDivider, config->numerator, config->postDivider, co… in CLOCK_InitVideoPll() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkmimxrt685/ |
D | clock_config.c | 143 … .numerator = 0, /* Numerator of the SYSPLL0 fractional loop divider isnull */ 149 ….numerator = 5040, /* Numerator of the Audio PLL fractional loop divider is …
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkmimxrt685/project_template/ |
D | clock_config.c | 143 … .numerator = 0, /* Numerator of the SYSPLL0 fractional loop divider isnull */ 149 ….numerator = 5040, /* Numerator of the Audio PLL fractional loop divider is …
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/mimxrt685audevk/ |
D | clock_config.c | 143 … .numerator = 0, /* Numerator of the SYSPLL0 fractional loop divider isnull */ 149 ….numerator = 5040, /* Numerator of the Audio PLL fractional loop divider is …
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/mimxrt685audevk/project_template/ |
D | clock_config.c | 143 … .numerator = 0, /* Numerator of the SYSPLL0 fractional loop divider isnull */ 149 ….numerator = 5040, /* Numerator of the Audio PLL fractional loop divider is …
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkmimxrt595/ |
D | clock_config.c | 176 .numerator = 0, /* Numerator of the SYSPLL0 fractional loop divider is 0 */ 182 ….numerator = 5040, /* Numerator of the Audio PLL fractional loop divider is …
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkmimxrt595/project_template/ |
D | clock_config.c | 176 .numerator = 0, /* Numerator of the SYSPLL0 fractional loop divider is 0 */ 182 ….numerator = 5040, /* Numerator of the Audio PLL fractional loop divider is …
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkbimxrt1050/ |
D | clock_config.c | 149 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 162 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F… 594 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 607 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F…
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkbimxrt1050/project_template/ |
D | clock_config.c | 149 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 162 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F… 594 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 607 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F…
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkmimxrt1040/ |
D | clock_config.c | 152 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 165 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F… 578 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 591 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F…
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkmimxrt1040/project_template/ |
D | clock_config.c | 152 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 165 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F… 578 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 591 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F…
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkbmimxrt1060/ |
D | clock_config.c | 156 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 169 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F… 615 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 628 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F…
|
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/evkbmimxrt1060/project_template/ |
D | clock_config.c | 156 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 169 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F… 615 .numerator = 0, /* 30 bit numerator of fractional loop divider */ 628 ….numerator = 0, /* 30 bit numerator of fractional loop divider, Fout = F…
|