aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/mmc_spi.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-14 11:51:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-14 11:51:24 +0000
commit174b6a1ba2483ab226bb8e7279f9a3b6535be308 (patch)
tree3a5f1307e111738c1f9311808a6fbd2c243c8b3b /os/io/mmc_spi.h
parentdc283fd4e68b3d5f19f8577195699b7d7e2801f8 (diff)
downloadChibiOS-174b6a1ba2483ab226bb8e7279f9a3b6535be308.tar.gz
ChibiOS-174b6a1ba2483ab226bb8e7279f9a3b6535be308.tar.bz2
ChibiOS-174b6a1ba2483ab226bb8e7279f9a3b6535be308.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1290 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/mmc_spi.h')
-rw-r--r--os/io/mmc_spi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/io/mmc_spi.h b/os/io/mmc_spi.h
index 1a2a29469..e89f17117 100644
--- a/os/io/mmc_spi.h
+++ b/os/io/mmc_spi.h
@@ -32,6 +32,13 @@
/*===========================================================================*/
/**
+ * @brief Block size for MMC transfers.
+ */
+#if !defined(MMC_BLOCK_SIZE) || defined(__DOXYGEN__)
+#define MMC_BLOCK_SIZE 512
+#endif
+
+/**
* @brief Delays insertions.
* @details If enabled this options inserts delays into the MMC waiting
* routines releasing some extra CPU time for the threads with
@@ -70,6 +77,7 @@
#define MMC_CMDINIT 1
#define MMC_CMDREADCSD 9
#define MMC_CMDSTOP 12
+#define MMC_CMDSETBLOCKLEN 16
#define MMC_CMDREAD 17
#define MMC_CMDREADMULTIPLE 18
#define MMC_CMDWRITE 24