Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 25 of 29) sorted by relevance

12

/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/NN/Source/ActivationFunctions/
Darm_nn_activations_q15.c75 q15_t frac = (uint32_t)in & bit_mask; in arm_nn_activations_direct_q15() local
81 out = ((q31_t)(full_frac - frac) * value + (q31_t)value2 * frac) >> shift_size; in arm_nn_activations_direct_q15()
/hal_nxp-3.5.0/imx/drivers/
Dccm_analog_imx6sx.c167 uint32_t main, frac; in CCM_ANALOG_GetPfdFreq() local
185 frac = CCM_ANALOG_GetPfdFrac(base, pfdFrac); in CCM_ANALOG_GetPfdFreq()
187 return main / frac * 18; in CCM_ANALOG_GetPfdFreq()
Dccm_analog_imx7d.c257 uint32_t main, frac; in CCM_ANALOG_GetPfdFreq() local
263 frac = CCM_ANALOG_GetPfdFrac(base, pfdFrac); in CCM_ANALOG_GetPfdFreq()
265 return main / frac * 18; in CCM_ANALOG_GetPfdFreq()
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1175/drivers/
Dfsl_clock.c308 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac) in CLOCK_InitPfd() argument
314 assert(frac <= (uint8_t)PFD_FRAC_MAX); in CLOCK_InitPfd()
315 assert(frac >= (uint8_t)PFD_FRAC_MIN); in CLOCK_InitPfd()
337 if ((regFracVal == (uint32_t)frac) && (!pfdGated)) in CLOCK_InitPfd()
347 *pfdCtrl |= (ANADIG_PLL_SYS_PLL2_PFD_PFD0_FRAC(frac) << (8UL * (uint32_t)pfd)); in CLOCK_InitPfd()
394 uint32_t pllFreq = 0UL, frac = 0UL; in CLOCK_GetPfdFreq() local
400 frac = (ANADIG_PLL->SYS_PLL2_PFD & in CLOCK_GetPfdFreq()
405 frac = (ANADIG_PLL->SYS_PLL3_PFD & in CLOCK_GetPfdFreq()
415 frac = frac >> (8UL * (uint32_t)pfd); in CLOCK_GetPfdFreq()
416 assert(frac >= (uint32_t)PFD_FRAC_MIN); in CLOCK_GetPfdFreq()
[all …]
Dfsl_clock.h2880 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac);
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1176/drivers/
Dfsl_clock.c308 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac) in CLOCK_InitPfd() argument
314 assert(frac <= (uint8_t)PFD_FRAC_MAX); in CLOCK_InitPfd()
315 assert(frac >= (uint8_t)PFD_FRAC_MIN); in CLOCK_InitPfd()
337 if ((regFracVal == (uint32_t)frac) && (!pfdGated)) in CLOCK_InitPfd()
347 *pfdCtrl |= (ANADIG_PLL_SYS_PLL2_PFD_PFD0_FRAC(frac) << (8UL * (uint32_t)pfd)); in CLOCK_InitPfd()
394 uint32_t pllFreq = 0UL, frac = 0UL; in CLOCK_GetPfdFreq() local
400 frac = (ANADIG_PLL->SYS_PLL2_PFD & in CLOCK_GetPfdFreq()
405 frac = (ANADIG_PLL->SYS_PLL3_PFD & in CLOCK_GetPfdFreq()
415 frac = frac >> (8UL * (uint32_t)pfd); in CLOCK_GetPfdFreq()
416 assert(frac >= (uint32_t)PFD_FRAC_MIN); in CLOCK_GetPfdFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1173/drivers/
Dfsl_clock.c308 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac) in CLOCK_InitPfd() argument
314 assert(frac <= (uint8_t)PFD_FRAC_MAX); in CLOCK_InitPfd()
315 assert(frac >= (uint8_t)PFD_FRAC_MIN); in CLOCK_InitPfd()
337 if ((regFracVal == (uint32_t)frac) && (!pfdGated)) in CLOCK_InitPfd()
347 *pfdCtrl |= (ANADIG_PLL_SYS_PLL2_PFD_PFD0_FRAC(frac) << (8UL * (uint32_t)pfd)); in CLOCK_InitPfd()
394 uint32_t pllFreq = 0UL, frac = 0UL; in CLOCK_GetPfdFreq() local
400 frac = (ANADIG_PLL->SYS_PLL2_PFD & in CLOCK_GetPfdFreq()
405 frac = (ANADIG_PLL->SYS_PLL3_PFD & in CLOCK_GetPfdFreq()
415 frac = frac >> (8UL * (uint32_t)pfd); in CLOCK_GetPfdFreq()
416 assert(frac >= (uint32_t)PFD_FRAC_MIN); in CLOCK_GetPfdFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1165/drivers/
Dfsl_clock.c306 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac) in CLOCK_InitPfd() argument
312 assert(frac <= (uint8_t)PFD_FRAC_MAX); in CLOCK_InitPfd()
313 assert(frac >= (uint8_t)PFD_FRAC_MIN); in CLOCK_InitPfd()
336 if ((regFracVal == (uint32_t)frac) && (!pfdGated)) in CLOCK_InitPfd()
346 *pfdCtrl |= (ANADIG_PLL_SYS_PLL2_PFD_PFD0_FRAC(frac) << (8UL * (uint32_t)pfd)); in CLOCK_InitPfd()
393 uint32_t pllFreq = 0UL, frac = 0UL; in CLOCK_GetPfdFreq() local
399 frac = (ANADIG_PLL->SYS_PLL2_PFD & in CLOCK_GetPfdFreq()
404 frac = (ANADIG_PLL->SYS_PLL3_PFD & in CLOCK_GetPfdFreq()
414 frac = frac >> (8UL * (uint32_t)pfd); in CLOCK_GetPfdFreq()
415 assert(frac >= (uint32_t)PFD_FRAC_MIN); in CLOCK_GetPfdFreq()
[all …]
Dfsl_clock.h2845 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac);
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1172/drivers/
Dfsl_clock.c308 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac) in CLOCK_InitPfd() argument
314 assert(frac <= (uint8_t)PFD_FRAC_MAX); in CLOCK_InitPfd()
315 assert(frac >= (uint8_t)PFD_FRAC_MIN); in CLOCK_InitPfd()
337 if ((regFracVal == (uint32_t)frac) && (!pfdGated)) in CLOCK_InitPfd()
347 *pfdCtrl |= (ANADIG_PLL_SYS_PLL2_PFD_PFD0_FRAC(frac) << (8UL * (uint32_t)pfd)); in CLOCK_InitPfd()
394 uint32_t pllFreq = 0UL, frac = 0UL; in CLOCK_GetPfdFreq() local
400 frac = (ANADIG_PLL->SYS_PLL2_PFD & in CLOCK_GetPfdFreq()
405 frac = (ANADIG_PLL->SYS_PLL3_PFD & in CLOCK_GetPfdFreq()
415 frac = frac >> (8UL * (uint32_t)pfd); in CLOCK_GetPfdFreq()
416 assert(frac >= (uint32_t)PFD_FRAC_MIN); in CLOCK_GetPfdFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1166/drivers/
Dfsl_clock.c306 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac) in CLOCK_InitPfd() argument
312 assert(frac <= (uint8_t)PFD_FRAC_MAX); in CLOCK_InitPfd()
313 assert(frac >= (uint8_t)PFD_FRAC_MIN); in CLOCK_InitPfd()
336 if ((regFracVal == (uint32_t)frac) && (!pfdGated)) in CLOCK_InitPfd()
346 *pfdCtrl |= (ANADIG_PLL_SYS_PLL2_PFD_PFD0_FRAC(frac) << (8UL * (uint32_t)pfd)); in CLOCK_InitPfd()
393 uint32_t pllFreq = 0UL, frac = 0UL; in CLOCK_GetPfdFreq() local
399 frac = (ANADIG_PLL->SYS_PLL2_PFD & in CLOCK_GetPfdFreq()
404 frac = (ANADIG_PLL->SYS_PLL3_PFD & in CLOCK_GetPfdFreq()
414 frac = frac >> (8UL * (uint32_t)pfd); in CLOCK_GetPfdFreq()
415 assert(frac >= (uint32_t)PFD_FRAC_MIN); in CLOCK_GetPfdFreq()
[all …]
Dfsl_clock.h2845 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac);
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT1171/drivers/
Dfsl_clock.c308 void CLOCK_InitPfd(clock_pll_t pll, clock_pfd_t pfd, uint8_t frac) in CLOCK_InitPfd() argument
314 assert(frac <= (uint8_t)PFD_FRAC_MAX); in CLOCK_InitPfd()
315 assert(frac >= (uint8_t)PFD_FRAC_MIN); in CLOCK_InitPfd()
337 if ((regFracVal == (uint32_t)frac) && (!pfdGated)) in CLOCK_InitPfd()
347 *pfdCtrl |= (ANADIG_PLL_SYS_PLL2_PFD_PFD0_FRAC(frac) << (8UL * (uint32_t)pfd)); in CLOCK_InitPfd()
394 uint32_t pllFreq = 0UL, frac = 0UL; in CLOCK_GetPfdFreq() local
400 frac = (ANADIG_PLL->SYS_PLL2_PFD & in CLOCK_GetPfdFreq()
405 frac = (ANADIG_PLL->SYS_PLL3_PFD & in CLOCK_GetPfdFreq()
415 frac = frac >> (8UL * (uint32_t)pfd); in CLOCK_GetPfdFreq()
416 assert(frac >= (uint32_t)PFD_FRAC_MIN); in CLOCK_GetPfdFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/frdmk28fa/project_template/
Dclock_config.c188 static void CLOCK_CONFIG_EnableUsbhs0PfdClock(uint8_t frac, uint8_t src) in CLOCK_CONFIG_EnableUsbhs0PfdClock() argument
190 uint32_t fracFreq = (480000U * 18U / frac) * 1000U; in CLOCK_CONFIG_EnableUsbhs0PfdClock()
193 (USBPHY_ANACTRL_PFD_FRAC(frac) | USBPHY_ANACTRL_PFD_CLK_SEL(src)); in CLOCK_CONFIG_EnableUsbhs0PfdClock()
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/frdmk66f/project_template/
Dclock_config.c189 static void CLOCK_CONFIG_EnableUsbhs0PfdClock(uint8_t frac, uint8_t src) in CLOCK_CONFIG_EnableUsbhs0PfdClock() argument
191 uint32_t fracFreq = (480000U * 18U / frac) * 1000U; in CLOCK_CONFIG_EnableUsbhs0PfdClock()
194 (USBPHY_ANACTRL_PFD_FRAC(frac) | USBPHY_ANACTRL_PFD_CLK_SEL(src)); in CLOCK_CONFIG_EnableUsbhs0PfdClock()
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK26F18/drivers/
Dfsl_clock.c783 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src) in CLOCK_EnableUsbhs0PfdClock() argument
785 assert((frac <= 35U) && (frac >= 18U)); in CLOCK_EnableUsbhs0PfdClock()
786 uint32_t fracFreq = (480000U * 18U / frac) * 1000U; in CLOCK_EnableUsbhs0PfdClock()
789 (USBPHY_ANACTRL_PFD_FRAC(frac) | USBPHY_ANACTRL_PFD_CLK_SEL(src)); in CLOCK_EnableUsbhs0PfdClock()
Dfsl_clock.h870 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src);
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK27FA15/drivers/
Dfsl_clock.c747 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src) in CLOCK_EnableUsbhs0PfdClock() argument
749 assert((frac <= 35U) && (frac >= 18U)); in CLOCK_EnableUsbhs0PfdClock()
750 uint32_t fracFreq = (480000U * 18U / frac) * 1000U; in CLOCK_EnableUsbhs0PfdClock()
753 (USBPHY_ANACTRL_PFD_FRAC(frac) | USBPHY_ANACTRL_PFD_CLK_SEL(src)); in CLOCK_EnableUsbhs0PfdClock()
Dfsl_clock.h875 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src);
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK66F18/drivers/
Dfsl_clock.c782 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src) in CLOCK_EnableUsbhs0PfdClock() argument
784 assert((frac <= 35U) && (frac >= 18U)); in CLOCK_EnableUsbhs0PfdClock()
785 uint32_t fracFreq = (480000U * 18U / frac) * 1000U; in CLOCK_EnableUsbhs0PfdClock()
788 (USBPHY_ANACTRL_PFD_FRAC(frac) | USBPHY_ANACTRL_PFD_CLK_SEL(src)); in CLOCK_EnableUsbhs0PfdClock()
Dfsl_clock.h898 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src);
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK65F18/drivers/
Dfsl_clock.c783 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src) in CLOCK_EnableUsbhs0PfdClock() argument
785 assert((frac <= 35U) && (frac >= 18U)); in CLOCK_EnableUsbhs0PfdClock()
786 uint32_t fracFreq = (480000U * 18U / frac) * 1000U; in CLOCK_EnableUsbhs0PfdClock()
789 (USBPHY_ANACTRL_PFD_FRAC(frac) | USBPHY_ANACTRL_PFD_CLK_SEL(src)); in CLOCK_EnableUsbhs0PfdClock()
Dfsl_clock.h899 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src);
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MK28FA15/drivers/
Dfsl_clock.c747 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src) in CLOCK_EnableUsbhs0PfdClock() argument
749 assert((frac <= 35U) && (frac >= 18U)); in CLOCK_EnableUsbhs0PfdClock()
750 uint32_t fracFreq = (480000U * 18U / frac) * 1000U; in CLOCK_EnableUsbhs0PfdClock()
753 (USBPHY_ANACTRL_PFD_FRAC(frac) | USBPHY_ANACTRL_PFD_CLK_SEL(src)); in CLOCK_EnableUsbhs0PfdClock()
Dfsl_clock.h880 void CLOCK_EnableUsbhs0PfdClock(uint8_t frac, clock_usb_pfd_src_t src);

12