Home
last modified time | relevance | path

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

/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_sd.c488 uint32_t sdmmc_clk; in HAL_SD_InitCard() local
500 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_InitCard()
501 if (sdmmc_clk == 0U) in HAL_SD_InitCard()
508 Init.ClockDiv = ((sdmmc_clk / SD_INIT_FREQ) - 2U); in HAL_SD_InitCard()
510 Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); in HAL_SD_InitCard()
541 sdmmc_clk = sdmmc_clk/(Init.ClockDiv + 2U); in HAL_SD_InitCard()
543 sdmmc_clk = sdmmc_clk/(2U*Init.ClockDiv); in HAL_SD_InitCard()
545 HAL_Delay(1U+ (74U*1000U/(sdmmc_clk))); in HAL_SD_InitCard()
2626 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2673 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32l4xx_hal_mmc.c458 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
470 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_MMC_InitCard()
471 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
478 Init.ClockDiv = ((sdmmc_clk/MMC_INIT_FREQ) - 2U); in HAL_MMC_InitCard()
480 Init.ClockDiv = sdmmc_clk/(2U*MMC_INIT_FREQ); in HAL_MMC_InitCard()
503 sdmmc_clk = sdmmc_clk/(Init.ClockDiv + 2U); in HAL_MMC_InitCard()
505 sdmmc_clk = sdmmc_clk/(2U*Init.ClockDiv); in HAL_MMC_InitCard()
507 HAL_Delay(1U+ (74U*1000U/(sdmmc_clk))); in HAL_MMC_InitCard()
4295 uint32_t sdmmc_clk; in MMC_HighSpeed() local
4361 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in MMC_HighSpeed()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_hal_sd.c470 uint32_t sdmmc_clk = 0U; in HAL_SD_InitCard() local
481 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_InitCard()
486 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC2); in HAL_SD_InitCard()
489 if (sdmmc_clk == 0U) in HAL_SD_InitCard()
495 Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); in HAL_SD_InitCard()
520 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_SD_InitCard()
523 if (sdmmc_clk != 0U) in HAL_SD_InitCard()
525 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_SD_InitCard()
2373 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2422 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32h5xx_hal_mmc.c426 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
437 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_MMC_InitCard()
442 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC2); in HAL_MMC_InitCard()
447 sdmmc_clk = 0; in HAL_MMC_InitCard()
449 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
455 Init.ClockDiv = sdmmc_clk / (2U * MMC_INIT_FREQ); in HAL_MMC_InitCard()
471 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_MMC_InitCard()
474 if (sdmmc_clk != 0U) in HAL_MMC_InitCard()
476 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_MMC_InitCard()
3937 uint32_t sdmmc_clk; in MMC_HighSpeed() local
[all …]
/hal_stm32-3.5.0/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()
2403 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2450 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_ConfigWideBusOperation()
2451 if (sdmmc_clk != 0U) in HAL_SD_ConfigWideBusOperation()
2460 if (hsd->Init.ClockDiv >= (sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ))) in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32l5xx_hal_mmc.c429 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
438 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_MMC_InitCard()
439 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
445 Init.ClockDiv = sdmmc_clk / (2U * MMC_INIT_FREQ); in HAL_MMC_InitCard()
459 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_MMC_InitCard()
460 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_MMC_InitCard()
3907 uint32_t sdmmc_clk; in MMC_HighSpeed() local
3973 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in MMC_HighSpeed()
3975 if (sdmmc_clk == 0U) in MMC_HighSpeed()
3981 if (sdmmc_clk <= MMC_HIGH_SPEED_FREQ) in MMC_HighSpeed()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_sd.c470 uint32_t sdmmc_clk; in HAL_SD_InitCard() local
479 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_InitCard()
480 if (sdmmc_clk == 0U) in HAL_SD_InitCard()
486 Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); in HAL_SD_InitCard()
511 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_SD_InitCard()
514 if (sdmmc_clk != 0U) in HAL_SD_InitCard()
516 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_SD_InitCard()
2364 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2411 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_ConfigWideBusOperation()
2412 if (sdmmc_clk != 0U) in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32u5xx_hal_mmc.c427 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
436 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_MMC_InitCard()
437 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
443 Init.ClockDiv = sdmmc_clk / (2U * MMC_INIT_FREQ); in HAL_MMC_InitCard()
459 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_MMC_InitCard()
462 if (sdmmc_clk != 0U) in HAL_MMC_InitCard()
464 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_MMC_InitCard()
3929 uint32_t sdmmc_clk; in MMC_HighSpeed() local
3995 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in MMC_HighSpeed()
3997 if (sdmmc_clk == 0U) in MMC_HighSpeed()
[all …]
/hal_stm32-3.5.0/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()
514 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_SD_InitCard()
517 if (sdmmc_clk != 0U) in HAL_SD_InitCard()
519 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_SD_InitCard()
2406 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local
2453 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_ConfigWideBusOperation()
2454 if (sdmmc_clk != 0U) in HAL_SD_ConfigWideBusOperation()
[all …]
Dstm32h7xx_hal_mmc.c429 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local
438 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_MMC_InitCard()
439 if (sdmmc_clk == 0U) in HAL_MMC_InitCard()
445 Init.ClockDiv = sdmmc_clk / (2U * MMC_INIT_FREQ); in HAL_MMC_InitCard()
461 sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); in HAL_MMC_InitCard()
464 if (sdmmc_clk != 0U) in HAL_MMC_InitCard()
466 HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); in HAL_MMC_InitCard()
3966 uint32_t sdmmc_clk; in MMC_HighSpeed() local
4032 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in MMC_HighSpeed()
4034 if (sdmmc_clk == 0U) in MMC_HighSpeed()
[all …]