Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
82186375
Commit
82186375
authored
Dec 06, 2016
by
Rami Ali
Committed by
Damien George
Dec 07, 2016
Browse files
stmhal: Port of f4 hal commit
09de0306
to updated f7 hal.
parent
e1c6ed63
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/hal/f7/src/stm32f7xx_hal_sd.c
View file @
82186375
...
...
@@ -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
+
1
ULL
)
*
512
*
1024
);
pCardInfo
->
CardBlockSize
=
512
;
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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