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:
Damien George 2019-04-01 16:41:20 +11:00
parent d752828b36
commit a5e93de184

View File

@ -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
* @{