micropython-lib/micropython/drivers/storage
Ben Wynn 200e8d13c9 sdcard: Updating sector calculation for SDXC.
The current code only calculates sectors for SDHC, with a max of 32G
The new code will calculate sectors for SDXC, with a max of 2T

C_SIZE is 22 bits[69:48] and the high 2 bits of csd[7] are required
to be 0, currently, so i'm not masking them off.

The max value for C_SIZE is 0x3FFEFF, so C_SIZE+1*1024 is a 32-bit number.

bumped version in manifest.py

Signed-off-by: Ben Wynn <bwynn@glowie.com>
2025-11-13 10:27:31 +11:00
..
sdcard sdcard: Updating sector calculation for SDXC. 2025-11-13 10:27:31 +11:00