Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
09de0306
Commit
09de0306
authored
Sep 05, 2014
by
Felix Domke
Committed by
Damien George
Sep 15, 2014
Browse files
stmhal/hal/src/stm32f4xx_hal_sd.c: fix SDHC card capacity
parent
d4a799f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/hal/src/stm32f4xx_hal_sd.c
View file @
09de0306
...
...
@@ -1578,7 +1578,7 @@ HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTy
/* Byte 10 */
tmp
=
(
uint8_t
)((
hsd
->
CSD
[
2
]
&
0x0000FF00
)
>>
8
);
pCardInfo
->
CardCapacity
=
((
pCardInfo
->
SD_csd
.
DeviceSize
+
1
))
*
512
*
1024
;
pCardInfo
->
CardCapacity
=
((
pCardInfo
->
SD_csd
.
DeviceSize
+
1
ULL
))
*
512
*
1024
;
pCardInfo
->
CardBlockSize
=
512
;
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment