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
6a8f6c11
Commit
6a8f6c11
authored
Sep 08, 2016
by
Krzysztof Blazewicz
Browse files
stmhal/hal/sd: reapply HAL commit
09de0306
for f4
parent
e2b48221
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/hal/f4/src/stm32f4xx_hal_sd.c
View file @
6a8f6c11
...
...
@@ -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
+
1U
LL
))
*
512U
*
1024U
);
pCardInfo
->
CardBlockSize
=
512U
;
}
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