Browse Source

stmhal/hal/sd: reapply HAL commit 09de030 for f4

pull/2408/head
Krzysztof Blazewicz 8 years ago
parent
commit
6a8f6c119c
  1. 2
      stmhal/hal/f4/src/stm32f4xx_hal_sd.c

2
stmhal/hal/f4/src/stm32f4xx_hal_sd.c

@ -1668,7 +1668,7 @@ HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTy
/* Byte 10 */
tmp = (uint8_t)((hsd->CSD[2U] & 0x0000FF00U) >> 8U);
pCardInfo->CardCapacity = (uint64_t)((((uint64_t)pCardInfo->SD_csd.DeviceSize + 1U)) * 512U * 1024U);
pCardInfo->CardCapacity = (uint64_t)((((uint64_t)pCardInfo->SD_csd.DeviceSize + 1ULL)) * 512U * 1024U);
pCardInfo->CardBlockSize = 512U;
}
else

Loading…
Cancel
Save