diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-02 15:23:50 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-02 15:23:50 +0000 |
commit | 31456cb4fea72d79b9c1af9a5b0cc7e3fed1ed6e (patch) | |
tree | edd790c30758bf9cef1e70e1066fa0a909547f76 /os/hal/include | |
parent | 9dd9aca2d4da2c346b3dd48ce532bdd07ac913f6 (diff) | |
download | ChibiOS-31456cb4fea72d79b9c1af9a5b0cc7e3fed1ed6e.tar.gz ChibiOS-31456cb4fea72d79b9c1af9a5b0cc7e3fed1ed6e.tar.bz2 ChibiOS-31456cb4fea72d79b9c1af9a5b0cc7e3fed1ed6e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2914 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/sdc.h | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/os/hal/include/sdc.h b/os/hal/include/sdc.h index 802145525..38b907000 100644 --- a/os/hal/include/sdc.h +++ b/os/hal/include/sdc.h @@ -35,25 +35,30 @@ /* Driver constants. */
/*===========================================================================*/
-#define SDC_CMD_GO_IDLE_STATE 0
-#define SDC_CMD_ALL_SEND_CID 2
-#define SDC_CMD_SEND_RELATIVE_ADDR 3
-#define SDC_CMD_SEL_DESEL_CARD 7
-#define SDC_CMD_SEND_IF_COND 8
-#define SDC_CMD_SEND_CSD 9
-#define SDC_CMD_SET_BLOCKLEN 16
-#define SDC_CMD_APP_OP_COND 41
-#define SDC_CMD_APP_CMD 55
-
-#define SDC_MODE_CARDTYPE_MASK 0xF
-#define SDC_MODE_CARDTYPE_SDV11 0 /**< Card is V1.1 compliant. */
-#define SDC_MODE_CARDTYPE_SDV20 1 /**< Card is V2.0 compliant. */
-#define SDC_MODE_CARDTYPE_MMC 2 /**< Card is MMC compliant. */
-#define SDC_MODE_HIGH_CAPACITY 0x10 /**< High capacity card. */
-
-#define SDC_CMD8_PATTERN 0x000001AA
-
-#define SDC_ACMD41_RETRY 100
+#define SDC_BLOCK_SIZE 512 /**< Fixed block size. */
+
+#define SDC_CMD_GO_IDLE_STATE 0
+#define SDC_CMD_ALL_SEND_CID 2
+#define SDC_CMD_SEND_RELATIVE_ADDR 3
+#define SDC_CMD_SEL_DESEL_CARD 7
+#define SDC_CMD_SEND_IF_COND 8
+#define SDC_CMD_SEND_CSD 9
+#define SDC_CMD_STOP_TRANSMISSION 12
+#define SDC_CMD_SET_BLOCKLEN 16
+#define SDC_CMD_READ_MULTIPLE_BLOCK 18
+#define SDC_CMD_WRITE_MULTIPLE_BLOCK 25
+#define SDC_CMD_APP_OP_COND 41
+#define SDC_CMD_APP_CMD 55
+
+#define SDC_MODE_CARDTYPE_MASK 0xF
+#define SDC_MODE_CARDTYPE_SDV11 0 /**< Card is V1.1 compliant.*/
+#define SDC_MODE_CARDTYPE_SDV20 1 /**< Card is V2.0 compliant.*/
+#define SDC_MODE_CARDTYPE_MMC 2 /**< Card is MMC compliant. */
+#define SDC_MODE_HIGH_CAPACITY 0x10 /**< High capacity card. */
+
+#define SDC_CMD8_PATTERN 0x000001AA
+
+#define SDC_ACMD41_RETRY 100
/*===========================================================================*/
/* Driver pre-compile time settings. */
|