From 3c343536b11c953359aa1d29c99fe234d7399644 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 5 Dec 2012 13:23:54 -0300 Subject: [PATCH] tornado/fw/mmc.[ch]: read/write address is not in sectors, just call it "addr" --- tornado/fw/mmc.c | 8 ++++---- tornado/fw/mmc.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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);