aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/mmc_spi.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-08 18:36:55 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-08 18:36:55 +0000
commit85cf8d37b5923dfa3e324c0e13e5e4d6efb884df (patch)
tree936b2ed16d977f8737c7c3a09e5dfdc93399690f /os/io/mmc_spi.h
parent0eb3b39e5e66fca98864b6724534ba65740d2473 (diff)
downloadChibiOS-85cf8d37b5923dfa3e324c0e13e5e4d6efb884df.tar.gz
ChibiOS-85cf8d37b5923dfa3e324c0e13e5e4d6efb884df.tar.bz2
ChibiOS-85cf8d37b5923dfa3e324c0e13e5e4d6efb884df.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1277 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/mmc_spi.h')
-rw-r--r--os/io/mmc_spi.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/os/io/mmc_spi.h b/os/io/mmc_spi.h
index 00f0e617b..538f46430 100644
--- a/os/io/mmc_spi.h
+++ b/os/io/mmc_spi.h
@@ -83,12 +83,12 @@
* @brief Driver state machine possible states.
*/
typedef enum {
- MMC_UNINIT = 0, /**< @brief Not initialized. *///!< MMC_UNINIT
- MMC_STOP = 1, /**< @brief Stopped. *///!< MMC_STOP
- MMC_WAIT = 2, /**< @brief Waiting card. *///!< MMC_WAIT
- MMC_INSERTED = 3, /**< @brief Card inserted. *///!< MMC_INSERTED
- MMC_READY = 4, /**< @brief Card ready. *///!< MMC_READY
- MMC_RUNNING = 5 /**< @brief Reading or writing. *///!< MMC_RUNNING
+ MMC_UNINIT = 0, /**< @brief Not initialized. */
+ MMC_STOP = 1, /**< @brief Stopped. */
+ MMC_WAIT = 2, /**< @brief Waiting card. */
+ MMC_INSERTED = 3, /**< @brief Card inserted. */
+ MMC_READY = 4, /**< @brief Card ready. */
+ MMC_RUNNING = 5 /**< @brief Reading or writing. */
} mmcstate_t;
/**
@@ -168,7 +168,10 @@ extern "C" {
mmcquery_t is_protected, mmcquery_t is_inserted);
void mmcStart(MMCDriver *mmcp, const MMCConfig *config);
void mmcStop(MMCDriver *mmcp);
- bool_t mmcOpen(MMCDriver *mmcp);
+ bool_t mmcConnect(MMCDriver *mmcp);
+ bool_t mmcStartSequentialRead(MMCDriver *mmcp, uint32_t startblk);
+ bool_t mmcSequentialRead(MMCDriver *mmcp, uint8_t *buffer);
+ bool_t mmcStopSequentialRead(MMCDriver *mmcp);
#ifdef __cplusplus
}
#endif