diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-05 16:01:52 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-05 16:01:52 +0000 |
commit | 62b090c673675b2f519aced5f466a72e432b1417 (patch) | |
tree | 1eb92683062f3d1a4ada364d837a3bdc4ea5380e /os/hal/include | |
parent | 600b02f38f3530c3bf3585090b685443ad8c11c8 (diff) | |
download | ChibiOS-62b090c673675b2f519aced5f466a72e432b1417.tar.gz ChibiOS-62b090c673675b2f519aced5f466a72e432b1417.tar.bz2 ChibiOS-62b090c673675b2f519aced5f466a72e432b1417.zip |
Improvements to the MMC over SPI driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3741 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/mmc_spi.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/os/hal/include/mmc_spi.h b/os/hal/include/mmc_spi.h index f51bd6765..42bcb2f84 100644 --- a/os/hal/include/mmc_spi.h +++ b/os/hal/include/mmc_spi.h @@ -19,7 +19,7 @@ */
/**
- * @file spi.h
+ * @file mmc_spi.h
* @brief MMC over SPI driver header.
*
* @addtogroup MMC_SPI
@@ -37,10 +37,12 @@ #define MMC_CMD0_RETRY 10
#define MMC_CMD1_RETRY 100
+#define MMC_ACMD41_RETRY 100
#define MMC_WAIT_DATA 10000
#define MMC_CMDGOIDLE 0
#define MMC_CMDINIT 1
+#define MMC_CMDINTERFACE_CONDITION 8
#define MMC_CMDREADCSD 9
#define MMC_CMDSTOP 12
#define MMC_CMDSETBLOCKLEN 16
@@ -48,6 +50,9 @@ #define MMC_CMDREADMULTIPLE 18
#define MMC_CMDWRITE 24
#define MMC_CMDWRITEMULTIPLE 25
+#define MMC_CMDAPP 55
+#define MMC_CMDREADOCR 58
+#define MMC_ACMDOPCONDITION 41
/*===========================================================================*/
/* Driver pre-compile time settings. */
@@ -180,6 +185,10 @@ typedef struct { * @brief Insertion counter.
*/
uint_fast8_t cnt;
+ /***
+ * @brief Addresses use blocks instead of bytes.
+ */
+ bool_t block_addresses;
} MMCDriver;
/*===========================================================================*/
|