diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-01 14:33:22 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-01 14:33:22 +0000 |
commit | 82b9e1cf4c0de6be44e273f3e49c3efbd0895d3f (patch) | |
tree | 9f50e811b083e1bbf0ba78a1bd53dac336367442 /os/hal/include | |
parent | b33b5201ad65ed0dafb2b9e0a2c40bf06fe27dfc (diff) | |
download | ChibiOS-82b9e1cf4c0de6be44e273f3e49c3efbd0895d3f.tar.gz ChibiOS-82b9e1cf4c0de6be44e273f3e49c3efbd0895d3f.tar.bz2 ChibiOS-82b9e1cf4c0de6be44e273f3e49c3efbd0895d3f.zip |
SDC card initialization works.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2911 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/sdc.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/os/hal/include/sdc.h b/os/hal/include/sdc.h index 4c43fe505..802145525 100644 --- a/os/hal/include/sdc.h +++ b/os/hal/include/sdc.h @@ -41,13 +41,15 @@ #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_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
|