Home
last modified time | relevance | path

Searched refs:clkDiv (Results 1 – 7 of 7) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/spdif/
Dfsl_spdif.c211 uint32_t clkDiv = sourceClockFreq_Hz / (sampleRate_Hz * 64U); in SPDIF_TxSetSampleRate() local
219 clkDiv += 1U; in SPDIF_TxSetSampleRate()
225 if (clkDiv > 256U) in SPDIF_TxSetSampleRate()
228 val |= SPDIF_STC_SYSCLK_DF((clkDiv / 128U) - 1U) | SPDIF_STC_TXCLK_DF(127U); in SPDIF_TxSetSampleRate()
234 val |= SPDIF_STC_SYSCLK_DF(1U) | SPDIF_STC_TXCLK_DF(clkDiv - 1U); in SPDIF_TxSetSampleRate()
242 val |= SPDIF_STC_TXCLK_DF(clkDiv - 1U); in SPDIF_TxSetSampleRate()
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT595S/drivers/
Dfsl_clock.c705 uint32_t clkDiv; in CLOCK_GetFlexspiClkFreq() local
712 clkDiv = CLKCTL0->FLEXSPI0FCLKDIV & CLKCTL0_FLEXSPI0FCLKDIV_DIV_MASK; in CLOCK_GetFlexspiClkFreq()
717 clkDiv = CLKCTL0->FLEXSPI1FCLKDIV & CLKCTL0_FLEXSPI1FCLKDIV_DIV_MASK; in CLOCK_GetFlexspiClkFreq()
747 return freq / (clkDiv + 1U); in CLOCK_GetFlexspiClkFreq()
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT555S/drivers/
Dfsl_clock.c705 uint32_t clkDiv; in CLOCK_GetFlexspiClkFreq() local
712 clkDiv = CLKCTL0->FLEXSPI0FCLKDIV & CLKCTL0_FLEXSPI0FCLKDIV_DIV_MASK; in CLOCK_GetFlexspiClkFreq()
717 clkDiv = CLKCTL0->FLEXSPI1FCLKDIV & CLKCTL0_FLEXSPI1FCLKDIV_DIV_MASK; in CLOCK_GetFlexspiClkFreq()
747 return freq / (clkDiv + 1U); in CLOCK_GetFlexspiClkFreq()
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/MIMXRT533S/drivers/
Dfsl_clock.c705 uint32_t clkDiv; in CLOCK_GetFlexspiClkFreq() local
712 clkDiv = CLKCTL0->FLEXSPI0FCLKDIV & CLKCTL0_FLEXSPI0FCLKDIV_DIV_MASK; in CLOCK_GetFlexspiClkFreq()
717 clkDiv = CLKCTL0->FLEXSPI1FCLKDIV & CLKCTL0_FLEXSPI1FCLKDIV_DIV_MASK; in CLOCK_GetFlexspiClkFreq()
747 return freq / (clkDiv + 1U); in CLOCK_GetFlexspiClkFreq()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pdm/
Dfsl_pdm.c262 …*base, uint32_t enableChannelMask, pdm_df_quality_mode_t qualityMode, uint8_t osr, uint32_t clkDiv) in PDM_SetSampleRate() argument
267 uint32_t regDiv = clkDiv >> 1U; in PDM_SetSampleRate()
Dfsl_pdm.h585 …base, uint32_t enableChannelMask, pdm_df_quality_mode_t qualityMode, uint8_t osr, uint32_t clkDiv);
/hal_nxp-3.5.0/mcux/mcux-sdk/cmsis_drivers/flexcomm/
Dfsl_i2c_cmsis.c641 uint32_t clkDiv; in I2C_InterruptControl() local
649 clkDiv = i2c->resource->GetFreq() / 1000U; in I2C_InterruptControl()
650 clkDiv = (clkDiv * 250U) / 1000000U; in I2C_InterruptControl()
651 i2c->resource->base->CLKDIV = clkDiv & I2C_CLKDIV_DIVVAL_MASK; in I2C_InterruptControl()