/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/rtc_1/ |
D | fsl_rtc.c | 302 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/ |
D | fsl_pwt.c | 80 …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()
|
D | fsl_pwt.h | 95 pwt_clock_prescale_t prescale; /*!< Pre-scaler to divide down the clock */ member
|
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pwt/ |
D | fsl_pwt.c | 87 …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()
|
D | fsl_pwt.h | 82 pwt_clock_prescale_t prescale; /*!< Pre-scaler to divide down the clock */ member
|
/hal_nxp-3.5.0/mcux/mcux-sdk/components/timer/ |
D | fsl_adapter_tpm.c | 90 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()
|
D | fsl_adapter_ftm.c | 97 ftmInfo.prescale = kFTM_Prescale_Divide_128; in HAL_TimerInit() 101 … halTimerState->timerClock_Hz = halTimerConfig->srcClock_Hz / (1UL << (uint32_t)ftmInfo.prescale); in HAL_TimerInit()
|
D | fsl_adapter_ctimer.c | 111 …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/ |
D | fsl_pwm.c | 85 base->PWMCR = (PWM_PWMCR_REPEAT(config->sampleRepeat) | PWM_PWMCR_PRESCALER(config->prescale) | in PWM_Init() 148 config->prescale = 0U; in PWM_GetDefaultConfig()
|
D | fsl_pwm.h | 123 uint16_t prescale; /*!< Pre-scaler to divide down the clock member
|
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ctimer/ |
D | fsl_ctimer.h | 171 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()
|
D | fsl_ctimer.c | 119 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/ |
D | fsl_powerquad.h | 1735 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/ |
D | fsl_lpi2c.c | 623 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/ |
D | fsl_tpm.c | 121 base->SC = TPM_SC_PS(config->prescale); in TPM_Init() 203 config->prescale = kTPM_Prescale_Divide_1; in TPM_GetDefaultConfig()
|
D | fsl_tpm.h | 287 tpm_clock_prescale_t prescale; /*!< Select TPM clock prescale value */ member
|
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/semc/ |
D | fsl_semc.c | 430 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/ |
D | fsl_ftm.c | 280 base->SC = FTM_SC_PS(config->prescale); in FTM_Init() 378 config->prescale = kFTM_Prescale_Divide_1; in FTM_GetDefaultConfig()
|
D | fsl_ftm.h | 346 ftm_clock_prescale_t prescale; /*!< FTM clock prescale value */ member
|
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pwm/ |
D | fsl_pwm.c | 160 reg |= (PWM_CTRL_PRSC(config->prescale) | PWM_CTRL_LDFQ(config->reloadFrequency)); in PWM_Init() 253 config->prescale = kPWM_Prescale_Divide_1; in PWM_GetDefaultConfig()
|
D | fsl_pwm.h | 370 pwm_clock_prescale_t prescale; /*!< Pre-scaler to divide down the clock */ member
|