Home
last modified time | relevance | path

Searched refs:sdmmc_clk (Results 1 – 8 of 8) sorted by relevance

/hal_stm32-2.7.6/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_sd.c489 uint32_t sdmmc_clk; in HAL_SD_InitCard() local
501 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_InitCard()
502 if (sdmmc_clk == 0U) in HAL_SD_InitCard()
509 Init.ClockDiv = ((sdmmc_clk / SD_INIT_FREQ) - 2U); in HAL_SD_InitCard()
511 Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); in HAL_SD_InitCard()
550 sdmmc_clk = sdmmc_clk/(Init.ClockDiv + 2U); in HAL_SD_InitCard()
552 sdmmc_clk = sdmmc_clk/(2U*Init.ClockDiv); in HAL_SD_InitCard()
554 HAL_Delay(1U+ (74U*1000U/(sdmmc_clk))); in HAL_SD_InitCard()
2635 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2682 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32l4xx_hal_mmc.c454 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
466 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_MMC_InitCard()
467 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
474 Init.ClockDiv = ((sdmmc_clk/MMC_INIT_FREQ) - 2U); in HAL_MMC_InitCard()
476 Init.ClockDiv = sdmmc_clk/(2U*MMC_INIT_FREQ); in HAL_MMC_InitCard()
507 sdmmc_clk = sdmmc_clk/(Init.ClockDiv + 2U); in HAL_MMC_InitCard()
509 sdmmc_clk = sdmmc_clk/(2U*Init.ClockDiv); in HAL_MMC_InitCard()
511 HAL_Delay(1U+ (74U*1000U/(sdmmc_clk))); in HAL_MMC_InitCard()
3987 uint32_t sdmmc_clk; in MMC_HighSpeed() local
4053 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in MMC_HighSpeed()
[all …]
/hal_stm32-2.7.6/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_sd.c468 uint32_t sdmmc_clk; in HAL_SD_InitCard() local
477 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_InitCard()
478 if (sdmmc_clk == 0U) in HAL_SD_InitCard()
484 Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); in HAL_SD_InitCard()
507 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_SD_InitCard()
508 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_SD_InitCard()
2353 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2400 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_ConfigWideBusOperation()
2401 if (sdmmc_clk != 0U) in HAL_SD_ConfigWideBusOperation()
2410 if (hsd->Init.ClockDiv >= (sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ))) in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32u5xx_hal_mmc.c419 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
428 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_MMC_InitCard()
429 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
435 Init.ClockDiv = sdmmc_clk / (2U * MMC_INIT_FREQ); in HAL_MMC_InitCard()
449 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_MMC_InitCard()
450 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_MMC_InitCard()
3518 uint32_t sdmmc_clk; in MMC_HighSpeed() local
3584 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in MMC_HighSpeed()
3585 if (sdmmc_clk == 0U) in MMC_HighSpeed()
3591 Init.ClockDiv = sdmmc_clk / (2U * MMC_HIGH_SPEED_FREQ); in MMC_HighSpeed()
/hal_stm32-2.7.6/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_sd.c473 uint32_t sdmmc_clk; in HAL_SD_InitCard() local
482 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_InitCard()
483 if (sdmmc_clk == 0U) in HAL_SD_InitCard()
489 Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); in HAL_SD_InitCard()
512 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_SD_InitCard()
513 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_SD_InitCard()
2397 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2444 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_ConfigWideBusOperation()
2445 if (sdmmc_clk != 0U) in HAL_SD_ConfigWideBusOperation()
2454 if (hsd->Init.ClockDiv >= (sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ))) in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32l5xx_hal_mmc.c424 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
433 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_MMC_InitCard()
434 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
440 Init.ClockDiv = sdmmc_clk / (2U * MMC_INIT_FREQ); in HAL_MMC_InitCard()
454 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_MMC_InitCard()
455 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_MMC_InitCard()
3549 uint32_t sdmmc_clk; in MMC_HighSpeed() local
3615 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in MMC_HighSpeed()
3616 if (sdmmc_clk == 0U) in MMC_HighSpeed()
3622 Init.ClockDiv = sdmmc_clk / (2U * MMC_HIGH_SPEED_FREQ); in MMC_HighSpeed()
/hal_stm32-2.7.6/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_sd.c473 uint32_t sdmmc_clk; in HAL_SD_InitCard() local
482 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_InitCard()
483 if (sdmmc_clk == 0U) in HAL_SD_InitCard()
489 Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); in HAL_SD_InitCard()
512 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_SD_InitCard()
513 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_SD_InitCard()
2397 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2444 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_ConfigWideBusOperation()
2445 if (sdmmc_clk != 0U) in HAL_SD_ConfigWideBusOperation()
2454 if (hsd->Init.ClockDiv >= (sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ))) in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32h7xx_hal_mmc.c424 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
433 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_MMC_InitCard()
434 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
440 Init.ClockDiv = sdmmc_clk / (2U * MMC_INIT_FREQ); in HAL_MMC_InitCard()
454 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_MMC_InitCard()
455 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_MMC_InitCard()
3549 uint32_t sdmmc_clk; in MMC_HighSpeed() local
3615 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in MMC_HighSpeed()
3616 if (sdmmc_clk == 0U) in MMC_HighSpeed()
3622 Init.ClockDiv = sdmmc_clk / (2U * MMC_HIGH_SPEED_FREQ); in MMC_HighSpeed()