Browse Source

stmhal: Port of f4 hal commit 09de030 to updated f7 hal.

pull/1853/merge
Rami Ali 8 years ago
committed by Damien George
parent
commit
821863751f
  1. 2
      stmhal/hal/f7/src/stm32f7xx_hal_sd.c

2
stmhal/hal/f7/src/stm32f7xx_hal_sd.c

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

Loading…
Cancel
Save