Searched refs:sdmmc_clk (Results 1 – 8 of 8) sorted by relevance
489 uint32_t sdmmc_clk; in HAL_SD_InitCard() local501 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() local2682 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in HAL_SD_ConfigWideBusOperation()[all …]
454 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local466 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() local4053 sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC1); in MMC_HighSpeed()[all …]
468 uint32_t sdmmc_clk; in HAL_SD_InitCard() local477 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() local2400 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 …]
419 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local428 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() local3584 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()
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()2397 uint32_t sdmmc_clk; in HAL_SD_ConfigWideBusOperation() local2444 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 …]
424 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local433 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() local3615 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()
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()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() local2444 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 …]
424 uint32_t sdmmc_clk; in HAL_MMC_InitCard() local433 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() local3615 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()