/hal_nxp-2.7.6/mcux/drivers/lpc/ |
D | fsl_mcan.c | 100 uint32_t sourceClock_Hz, 127 uint32_t sourceClock_Hz, 233 uint32_t sourceClock_Hz, in MCAN_SetBaudRate() argument 244 assert(preDivA <= sourceClock_Hz); in MCAN_SetBaudRate() 251 preDivA = (sourceClock_Hz / preDivA) - 1U; in MCAN_SetBaudRate() 267 uint32_t sourceClock_Hz, in MCAN_SetBaudRateFD() argument 278 assert(preDivD <= sourceClock_Hz); in MCAN_SetBaudRateFD() 285 preDivD = (sourceClock_Hz / preDivD) - 1U; in MCAN_SetBaudRateFD() 322 void MCAN_Init(CAN_Type *base, const mcan_config_t *config, uint32_t sourceClock_Hz) in MCAN_Init() argument 362 MCAN_SetBaudRate(base, sourceClock_Hz, config->baudRateA, config->timingConfig); in MCAN_Init() [all …]
|
D | fsl_mcan.h | 432 void MCAN_Init(CAN_Type *base, const mcan_config_t *config, uint32_t sourceClock_Hz); 512 bool MCAN_CalculateImprovedTimingValues(uint32_t baudRate, uint32_t sourceClock_Hz, mcan_timing_con… 543 uint32_t sourceClock_Hz,
|
D | fsl_sdif.h | 412 uint32_t sourceClock_Hz; /*!< sdif source clock frequency united in Hz */ member
|
/hal_nxp-2.7.6/mcux/drivers/imx/ |
D | fsl_lpi2c.c | 59 static uint32_t LPI2C_GetCyclesForWidth(uint32_t sourceClock_Hz, 145 static uint32_t LPI2C_GetCyclesForWidth(uint32_t sourceClock_Hz, in LPI2C_GetCyclesForWidth() argument 150 assert(sourceClock_Hz > 0U); in LPI2C_GetCyclesForWidth() 160 uint32_t busCycle_ns = 1000000U / (sourceClock_Hz / divider / 1000U); in LPI2C_GetCyclesForWidth() 362 …2C_MasterInit(LPI2C_Type *base, const lpi2c_master_config_t *masterConfig, uint32_t sourceClock_Hz) in LPI2C_MasterInit() argument 409 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sdaGlitchFilterWidth_ns, in LPI2C_MasterInit() 416 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sclGlitchFilterWidth_ns, in LPI2C_MasterInit() 425 LPI2C_MasterSetBaudRate(base, sourceClock_Hz, masterConfig->baudRate_Hz); in LPI2C_MasterInit() 433 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->busIdleTimeout_ns, in LPI2C_MasterInit() 441 … cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->pinLowTimeout_ns / 256U, in LPI2C_MasterInit() [all …]
|
D | fsl_flexcan.c | 218 uint32_t sourceClock_Hz, 252 uint32_t sourceClock_Hz, 297 uint32_t sourceClock_Hz, 795 uint32_t sourceClock_Hz, in FLEXCAN_SetBitRate() argument 808 assert((bitRate_Bps * quantum) <= sourceClock_Hz); in FLEXCAN_SetBitRate() 815 assert((bitRate_Bps * quantum * MAX_ENPRESDIV) >= sourceClock_Hz); in FLEXCAN_SetBitRate() 817 assert((bitRate_Bps * quantum * MAX_EPRESDIV) >= sourceClock_Hz); in FLEXCAN_SetBitRate() 822 assert((bitRate_Bps * quantum * MAX_PRESDIV) >= sourceClock_Hz); in FLEXCAN_SetBitRate() 825 assert((bitRate_Bps * quantum * MAX_PRESDIV) >= sourceClock_Hz); in FLEXCAN_SetBitRate() 834 timingConfig.preDivider = (uint16_t)((sourceClock_Hz / (bitRate_Bps * quantum)) - 1U); in FLEXCAN_SetBitRate() [all …]
|
D | fsl_asrc.c | 61 static uint32_t ASRC_CalculateClockDivider(uint32_t sampleRate_Hz, uint32_t sourceClock_Hz); 144 static uint32_t ASRC_CalculateClockDivider(uint32_t sampleRate_Hz, uint32_t sourceClock_Hz) in ASRC_CalculateClockDivider() argument 146 assert(sourceClock_Hz >= sampleRate_Hz); in ASRC_CalculateClockDivider() 148 uint32_t divider = sourceClock_Hz / sampleRate_Hz; in ASRC_CalculateClockDivider() 167 if (sourceClock_Hz / ((1UL << prescaler) * divider) > sampleRate_Hz) in ASRC_CalculateClockDivider()
|
D | fsl_lpi2c.h | 510 …C_MasterInit(LPI2C_Type *base, const lpi2c_master_config_t *masterConfig, uint32_t sourceClock_Hz); 754 void LPI2C_MasterSetBaudRate(LPI2C_Type *base, uint32_t sourceClock_Hz, uint32_t baudRate_Hz); 1009 …PI2C_SlaveInit(LPI2C_Type *base, const lpi2c_slave_config_t *slaveConfig, uint32_t sourceClock_Hz);
|
D | fsl_flexcan.h | 1065 uint32_t sourceClock_Hz, 1093 void FLEXCAN_Init(CAN_Type *base, const flexcan_config_t *pConfig, uint32_t sourceClock_Hz); 1115 uint32_t sourceClock_Hz, 1147 …CAN_Type *base, const flexcan_config_t *pConfig, uint32_t sourceClock_Hz, flexcan_mb_size_t dataSi…
|
D | fsl_usdhc.h | 769 uint32_t sourceClock_Hz; /*!< USDHC source clock frequency united in Hz. */ member
|
/hal_nxp-2.7.6/mcux/drivers/kinetis/ |
D | fsl_lpi2c.c | 96 static uint32_t LPI2C_GetCyclesForWidth(uint32_t sourceClock_Hz, 179 static uint32_t LPI2C_GetCyclesForWidth(uint32_t sourceClock_Hz, in LPI2C_GetCyclesForWidth() argument 184 assert(sourceClock_Hz > 0U); in LPI2C_GetCyclesForWidth() 187 uint32_t busCycle_ns = 1000000U / (sourceClock_Hz / prescaler / 1000U); in LPI2C_GetCyclesForWidth() 389 …2C_MasterInit(LPI2C_Type *base, const lpi2c_master_config_t *masterConfig, uint32_t sourceClock_Hz) in LPI2C_MasterInit() argument 432 LPI2C_MasterSetBaudRate(base, sourceClock_Hz, masterConfig->baudRate_Hz); in LPI2C_MasterInit() 439 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->busIdleTimeout_ns, in LPI2C_MasterInit() 446 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sdaGlitchFilterWidth_ns, in LPI2C_MasterInit() 453 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sclGlitchFilterWidth_ns, in LPI2C_MasterInit() 461 … cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->pinLowTimeout_ns / 256U, in LPI2C_MasterInit() [all …]
|
D | fsl_flexcan.c | 218 uint32_t sourceClock_Hz, 252 uint32_t sourceClock_Hz, 297 uint32_t sourceClock_Hz, 795 uint32_t sourceClock_Hz, in FLEXCAN_SetBitRate() argument 808 assert((bitRate_Bps * quantum) <= sourceClock_Hz); in FLEXCAN_SetBitRate() 815 assert((bitRate_Bps * quantum * MAX_ENPRESDIV) >= sourceClock_Hz); in FLEXCAN_SetBitRate() 817 assert((bitRate_Bps * quantum * MAX_EPRESDIV) >= sourceClock_Hz); in FLEXCAN_SetBitRate() 822 assert((bitRate_Bps * quantum * MAX_PRESDIV) >= sourceClock_Hz); in FLEXCAN_SetBitRate() 825 assert((bitRate_Bps * quantum * MAX_PRESDIV) >= sourceClock_Hz); in FLEXCAN_SetBitRate() 834 timingConfig.preDivider = (uint16_t)((sourceClock_Hz / (bitRate_Bps * quantum)) - 1U); in FLEXCAN_SetBitRate() [all …]
|
D | fsl_lpi2c.h | 458 …C_MasterInit(LPI2C_Type *base, const lpi2c_master_config_t *masterConfig, uint32_t sourceClock_Hz); 702 void LPI2C_MasterSetBaudRate(LPI2C_Type *base, uint32_t sourceClock_Hz, uint32_t baudRate_Hz); 957 …PI2C_SlaveInit(LPI2C_Type *base, const lpi2c_slave_config_t *slaveConfig, uint32_t sourceClock_Hz);
|
D | fsl_flexcan.h | 1065 uint32_t sourceClock_Hz, 1093 void FLEXCAN_Init(CAN_Type *base, const flexcan_config_t *pConfig, uint32_t sourceClock_Hz); 1115 uint32_t sourceClock_Hz, 1147 …CAN_Type *base, const flexcan_config_t *pConfig, uint32_t sourceClock_Hz, flexcan_mb_size_t dataSi…
|
D | fsl_i2c.c | 53 static void I2C_SetHoldTime(I2C_Type *base, uint32_t sclStopHoldTime_ns, uint32_t sourceClock_Hz); 163 static void I2C_SetHoldTime(I2C_Type *base, uint32_t sclStopHoldTime_ns, uint32_t sourceClock_Hz) in I2C_SetHoldTime() argument 194 … computedSclHoldTime = ((multiplier * s_i2cDividerTable[i]) * 500000U) / (sourceClock_Hz / 1000U); in I2C_SetHoldTime()
|
D | fsl_sdhc.h | 546 uint32_t sourceClock_Hz; /*!< SDHC source clock frequency united in Hz */ member
|
/hal_nxp-2.7.6/mcux/boards/evkmimxrt1170/ |
D | sdmmc_config.c | 199 ((sd_card_t *)card)->host->hostController.sourceClock_Hz = BOARD_USDHC1ClockConfiguration(); in BOARD_SD_Config() 236 ((sdio_card_t *)card)->host->hostController.sourceClock_Hz = BOARD_USDHC1ClockConfiguration(); in BOARD_SDIO_Config() 277 ((mmc_card_t *)card)->host->hostController.sourceClock_Hz = BOARD_USDHC1ClockConfiguration(); in BOARD_MMC_Config()
|
/hal_nxp-2.7.6/mcux/drivers/imxrt6xx/ |
D | fsl_i3c.h | 694 void I3C_Init(I3C_Type *base, const i3c_config_t *config, uint32_t sourceClock_Hz); 739 …d I3C_MasterInit(I3C_Type *base, const i3c_master_config_t *masterConfig, uint32_t sourceClock_Hz); 1019 …C_MasterSetBaudRate(I3C_Type *base, const i3c_baudrate_hz_t *baudRate_Hz, uint32_t sourceClock_Hz);
|
D | fsl_i3c.c | 583 void I3C_Init(I3C_Type *base, const i3c_config_t *config, uint32_t sourceClock_Hz) in I3C_Init() argument 610 I3C_MasterSetBaudRate(base, &config->baudRate_Hz, sourceClock_Hz); in I3C_Init() 682 …id I3C_MasterInit(I3C_Type *base, const i3c_master_config_t *masterConfig, uint32_t sourceClock_Hz) in I3C_MasterInit() argument 700 I3C_MasterSetBaudRate(base, &masterConfig->baudRate_Hz, sourceClock_Hz); in I3C_MasterInit() 796 …3C_MasterSetBaudRate(I3C_Type *base, const i3c_baudrate_hz_t *baudRate_Hz, uint32_t sourceClock_Hz) in I3C_MasterSetBaudRate() argument 808 freq = sourceClock_Hz / 2UL; in I3C_MasterSetBaudRate()
|
D | fsl_usdhc.h | 769 uint32_t sourceClock_Hz; /*!< USDHC source clock frequency united in Hz. */ member
|