aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/sdc_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-14 16:45:57 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-14 16:45:57 +0000
commit2b1173e29246cbc82f45490d0b1b1443d7bf897a (patch)
tree43a43b5de70a4463ae050560f6ebde75f502b0b7 /os/hal/platforms/STM32/sdc_lld.h
parent18cab5548c02bd6c52af77be2a737a8a8fd47070 (diff)
downloadChibiOS-2b1173e29246cbc82f45490d0b1b1443d7bf897a.tar.gz
ChibiOS-2b1173e29246cbc82f45490d0b1b1443d7bf897a.tar.bz2
ChibiOS-2b1173e29246cbc82f45490d0b1b1443d7bf897a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4276 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/sdc_lld.h')
-rw-r--r--os/hal/platforms/STM32/sdc_lld.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.h b/os/hal/platforms/STM32/sdc_lld.h
index a2cb6472d..7511bf581 100644
--- a/os/hal/platforms/STM32/sdc_lld.h
+++ b/os/hal/platforms/STM32/sdc_lld.h
@@ -198,13 +198,29 @@ typedef struct {
} SDCConfig;
/**
+ * @brief @p SDCDriver specific methods.
+ */
+#define _sdc_driver_methods \
+ _mmcsd_block_device_methods
+
+/**
+ * @extends MMCSDBlockDeviceVMT
+ *
+ * @brief @p SDCDriver virtual methods table.
+ */
+struct SDCDriverVMT {
+ _sdc_driver_methods
+};
+
+/**
* @brief Structure representing an SDC driver.
*/
struct SDCDriver {
/**
* @brief Virtual Methods Table.
*/
- const struct MMCSDBlockDeviceVMT *vmt;
+ const struct SDCDriverVMT *vmt;
+ _mmcsd_block_device_data
/**
* @brief Driver state.
*/
@@ -222,21 +238,9 @@ struct SDCDriver {
*/
sdcflags_t errors;
/**
- * @brief Card CID.
- */
- uint32_t cid[4];
- /**
- * @brief Card CSD.
- */
- uint32_t csd[4];
- /**
* @brief Card RCA.
*/
uint32_t rca;
- /**
- * @brief Total number of blocks in card.
- */
- uint32_t capacity;
/* End of the mandatory fields.*/
/**
* @brief Thread waiting for I/O completion IRQ.