diff --git a/tornado/fw/mmc.c b/tornado/fw/mmc.c index 9893de6..7255062 100644 --- a/tornado/fw/mmc.c +++ b/tornado/fw/mmc.c @@ -105,12 +105,12 @@ static bool mmc_wait(void) } -bool mmc_begin_read(uint32_t sector) +bool mmc_begin_read(uint32_t addr) { uint8_t res; mmc_begin(); - mmc_command(MMC_READ_SINGLE_BLOCK, sector); + mmc_command(MMC_READ_SINGLE_BLOCK, addr); res = mmc_r1(); DEBUG("mmc_begin_read: r1 = 0x%02x", res); if (res) { @@ -135,12 +135,12 @@ bool mmc_end_read(void) } -bool mmc_begin_write(uint32_t sector) +bool mmc_begin_write(uint32_t addr) { uint8_t res; mmc_begin(); - mmc_command(MMC_WRITE_BLOCK, sector); + mmc_command(MMC_WRITE_BLOCK, addr); res = mmc_r1(); DEBUG("mmc_begin_write: r1 = 0x%02x", res); if (res) { diff --git a/tornado/fw/mmc.h b/tornado/fw/mmc.h index dd03a5d..28c3e69 100644 --- a/tornado/fw/mmc.h +++ b/tornado/fw/mmc.h @@ -21,11 +21,11 @@ #define MMC_BLOCK 512 -bool mmc_begin_read(uint32_t sector); +bool mmc_begin_read(uint32_t addr); uint8_t mmc_read(void); bool mmc_end_read(void); -bool mmc_begin_write(uint32_t sector); +bool mmc_begin_write(uint32_t addr); void mmc_write(uint8_t data); bool mmc_end_write(void);