Date:2012-12-05 15:01:36 (11 years 3 months ago)
Author:Werner Almesberger
Commit:f82f7c34bce17f40a6a0a32311bfb9eabe7bd6e3
Message:tornado/fw/mmc.c (mmc_wait): return success or failure (timeout)

Files: tornado/fw/mmc.c (2 diffs)

Change Details

tornado/fw/mmc.c
7676}
7777
7878
79static void mmc_wait(void)
79static bool mmc_wait(void)
8080{
8181    uint8_t v, tries = 0xff;
8282
8383    do {
8484        v = mmc_recv();
8585        if (v == MMC_START_SINGLE_BLOCK)
86            return;
86            return 1;
8787    }
8888    while (--tries);
89    return 0;
8990}
9091
9192
...... 
9798        mmc_end();
9899        return 0;
99100    } else {
100        mmc_wait();
101        return 1;
101        return mmc_wait();
102102    }
103103}
104104

Archive Download the corresponding diff file

Branches:
master
tornado-v1



interactive