Home
last modified time | relevance | path

Searched refs:prescale (Results 1 – 21 of 21) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/rtc_1/
Dfsl_rtc.c302 uint32_t clocks, divide, prescale; in RTC_GetDivideValue() local
306 prescale = (uint32_t)((base->SC & RTC_SC_RTCPS_MASK) >> RTC_SC_RTCPS_SHIFT); in RTC_GetDivideValue()
308 assert(prescale > 0UL); in RTC_GetDivideValue()
312 divide = 1UL << (prescale - 1UL); in RTC_GetDivideValue()
316 if (prescale < 6UL) in RTC_GetDivideValue()
318 divide = 1UL << (prescale + 6UL); in RTC_GetDivideValue()
320 else if (prescale == 6UL) in RTC_GetDivideValue()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pwt_1/
Dfsl_pwt.c80 …base->R1 |= PWT_R1_PCLKS(config->clockSource) | PWT_R1_PRE(config->prescale) | PWT_R1_PINSEL(confi… in PWT_Init()
122 config->prescale = kPWT_Prescale_Divide_1; in PWT_GetDefaultConfig()
Dfsl_pwt.h95 pwt_clock_prescale_t prescale; /*!< Pre-scaler to divide down the clock */ member
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pwt/
Dfsl_pwt.c87 …base->CR = PWT_CR_PCLKS(config->clockSource) | PWT_CR_PRE(config->prescale) | PWT_CR_PINSEL(config… in PWT_Init()
128 config->prescale = kPWT_Prescale_Divide_1; in PWT_GetDefaultConfig()
Dfsl_pwt.h82 pwt_clock_prescale_t prescale; /*!< Pre-scaler to divide down the clock */ member
/hal_nxp-3.5.0/mcux/mcux-sdk/components/timer/
Dfsl_adapter_tpm.c90 tpmInfo.prescale = kTPM_Prescale_Divide_128; in HAL_TimerHwInit()
153 tpmInfo.prescale = kTPM_Prescale_Divide_128; in HAL_TimerInit()
154 halTimerState->timerClock_Hz = halTimerConfig->srcClock_Hz / (1UL << (uint8_t)tpmInfo.prescale); in HAL_TimerInit()
Dfsl_adapter_ftm.c97 ftmInfo.prescale = kFTM_Prescale_Divide_128; in HAL_TimerInit()
101 … halTimerState->timerClock_Hz = halTimerConfig->srcClock_Hz / (1UL << (uint32_t)ftmInfo.prescale); in HAL_TimerInit()
Dfsl_adapter_ctimer.c111 …timerClock_Hz = (uint32_t)halTimerConfig->srcClock_Hz / (uint32_t)(config.prescale + 1U); in HAL_TimerInit()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ipwm/
Dfsl_pwm.c85 base->PWMCR = (PWM_PWMCR_REPEAT(config->sampleRepeat) | PWM_PWMCR_PRESCALER(config->prescale) | in PWM_Init()
148 config->prescale = 0U; in PWM_GetDefaultConfig()
Dfsl_pwm.h123 uint16_t prescale; /*!< Pre-scaler to divide down the clock member
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ctimer/
Dfsl_ctimer.h171 uint32_t prescale; /*!< Prescale value */ member
535 static inline void CTIMER_SetPrescale(CTIMER_Type *base, uint32_t prescale) in CTIMER_SetPrescale() argument
537 base->PR = CTIMER_PR_PRVAL(prescale); in CTIMER_SetPrescale()
Dfsl_ctimer.c119 base->PR = CTIMER_PR_PRVAL(config->prescale); in CTIMER_Init()
165 config->prescale = 0; in CTIMER_GetDefaultConfig()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/powerquad/
Dfsl_powerquad.h1735 static inline void PQ_SetCoprocessorScaler(POWERQUAD_Type *base, const pq_prescale_t *prescale) in PQ_SetCoprocessorScaler() argument
1737 assert(NULL != prescale); in PQ_SetCoprocessorScaler()
1739 base->CPPRE = POWERQUAD_CPPRE_CPPRE_IN(prescale->inputPrescale) | in PQ_SetCoprocessorScaler()
1740 POWERQUAD_CPPRE_CPPRE_OUT(prescale->outputPrescale) | in PQ_SetCoprocessorScaler()
1741 ((uint32_t)prescale->outputSaturate << POWERQUAD_CPPRE_CPPRE_SAT_SHIFT); in PQ_SetCoprocessorScaler()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpi2c/
Dfsl_lpi2c.c623 uint8_t prescale = 0U; in LPI2C_MasterSetBaudRate() local
642 for (prescale = 0U; prescale <= 7U; prescale++) in LPI2C_MasterSetBaudRate()
667 bestPre = prescale; in LPI2C_MasterSetBaudRate()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/tpm/
Dfsl_tpm.c121 base->SC = TPM_SC_PS(config->prescale); in TPM_Init()
203 config->prescale = kTPM_Prescale_Divide_1; in TPM_GetDefaultConfig()
Dfsl_tpm.h287 tpm_clock_prescale_t prescale; /*!< Select TPM clock prescale value */ member
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/semc/
Dfsl_semc.c430 uint16_t prescale = (uint16_t)(config->tPrescalePeriod_Ns / 16U / (1000000000U / clkSrc_Hz)); in SEMC_ConfigureSDRAM() local
447 if (prescale > 256U) in SEMC_ConfigureSDRAM()
514 … SEMC_SDRAMCR3_PRESCALE(prescale) | SEMC_SDRAMCR3_RT(refresh - 1UL) | SEMC_SDRAMCR3_UT(urgentRef); in SEMC_ConfigureSDRAM()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ftm/
Dfsl_ftm.c280 base->SC = FTM_SC_PS(config->prescale); in FTM_Init()
378 config->prescale = kFTM_Prescale_Divide_1; in FTM_GetDefaultConfig()
Dfsl_ftm.h346 ftm_clock_prescale_t prescale; /*!< FTM clock prescale value */ member
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pwm/
Dfsl_pwm.c160 reg |= (PWM_CTRL_PRSC(config->prescale) | PWM_CTRL_LDFQ(config->reloadFrequency)); in PWM_Init()
253 config->prescale = kPWM_Prescale_Divide_1; in PWM_GetDefaultConfig()
Dfsl_pwm.h370 pwm_clock_prescale_t prescale; /*!< Pre-scaler to divide down the clock */ member