F7_HAL/mmc: Fix CAPACITY constant used to determine high-capacity MMC.
In the code CAPACITY is compared against number of logical blocks, not number of bytes, so should be expressed as 2GB in 512 blocks. This is how it's done in the F4 code.
This commit is contained in:
parent
a2f1d6450e
commit
9edcabfdd6
@ -243,7 +243,7 @@ typedef struct
|
||||
*/
|
||||
|
||||
#define BLOCKSIZE ((uint32_t)512U) /*!< Block size is 512 bytes */
|
||||
#define CAPACITY ((uint32_t)0x80000000U) /*!< 2 G bytes constant */
|
||||
#define CAPACITY ((uint32_t)0x400000U) /*!< Log Block Number for 2 G bytes Cards */
|
||||
|
||||
/** @defgroup MMC_Exported_Constansts_Group1 MMC Error status enumeration Structure definition
|
||||
* @{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user