Searched refs:sdmmc_clk (Results 1 – 10 of 10) sorted by relevance
488 uint32_t sdmmc_clk; in HAL_SD_InitCard() local500 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() local2673 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_ConfigWideBusOperation()[all …]
458 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local470 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() local4361 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in MMC_HighSpeed()[all …]
470 uint32_t sdmmc_clk = 0U; in HAL_SD_InitCard() local481 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() local2422 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_ConfigWideBusOperation()[all …]
426 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local437 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 …]
473 uint32_t sdmmc_clk; in HAL_SD_InitCard() local482 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() local2450 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 …]
429 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local438 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() local3973 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 …]
470 uint32_t sdmmc_clk; in HAL_SD_InitCard() local479 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() local2411 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_ConfigWideBusOperation()2412 if (sdmmc_clk != 0U) in HAL_SD_ConfigWideBusOperation()[all …]
427 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local436 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() local3995 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in MMC_HighSpeed()3997 if (sdmmc_clk == 0U) in MMC_HighSpeed()[all …]
473 uint32_t sdmmc_clk; in HAL_SD_InitCard() local482 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() local2453 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in HAL_SD_ConfigWideBusOperation()2454 if (sdmmc_clk != 0U) in HAL_SD_ConfigWideBusOperation()[all …]
429 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local438 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() local4032 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); in MMC_HighSpeed()4034 if (sdmmc_clk == 0U) in MMC_HighSpeed()[all …]