1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/sdcard_spi
Gaëtan Harter 939ca4e1bf
drivers/sdcard_spi: fix uint64_t cast location
When compiling `tests/drivers_sdcard_spi` with `avr-gcc: avr-gcc (GCC) 6.4.0`
it detected this error

    RIOT/drivers/sdcard_spi/sdcard_spi.c:1012:72:
    error: result of '512 << 10' requires 21 bits to represent, but 'int' only has 16 bits [-Werror=shift-overflow=]
    return (card->csd.v2.C_SIZE + 1) * (uint64_t)(SD_HC_BLOCK_SIZE << 10);
2018-08-09 09:12:23 +02:00
..
include drivers/sdcard_spi: use new driver params scheme 2018-02-28 17:43:28 +01:00
Makefile drivers: added driver for accessing sd_cards over spi 2017-01-20 18:11:26 +01:00
sdcard_spi.c drivers/sdcard_spi: fix uint64_t cast location 2018-08-09 09:12:23 +02:00