aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorUladzimir Pylinski <barthess@yandex.ru>2015-02-19 15:25:48 +0000
committerUladzimir Pylinski <barthess@yandex.ru>2015-02-19 15:25:48 +0000
commit7c1422770ef052e4509a27210a4262797df351ed (patch)
tree3fe9f23a1f970dc5bfd5601a68a298a49cd22b43 /os/hal/ports
parente88d9be726d2d15dbbfa423c67bdc0bb56d41c92 (diff)
downloadChibiOS-7c1422770ef052e4509a27210a4262797df351ed.tar.gz
ChibiOS-7c1422770ef052e4509a27210a4262797df351ed.tar.bz2
ChibiOS-7c1422770ef052e4509a27210a4262797df351ed.zip
SDIO. Working area buffer now handles using pointer in SDConfig structure.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7692 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/STM32/LLD/sdc_lld.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/sdc_lld.h b/os/hal/ports/STM32/LLD/sdc_lld.h
index 428ef1568..ddca0e578 100644
--- a/os/hal/ports/STM32/LLD/sdc_lld.h
+++ b/os/hal/ports/STM32/LLD/sdc_lld.h
@@ -219,9 +219,18 @@ typedef struct SDCDriver SDCDriver;
*/
typedef struct {
/**
- * @brief Bus width(board specific).
+ * @brief Bus width (board specific).
*/
- sdcbusmode_t bus_width;
+ sdcbusmode_t bus_width;
+ /**
+ * @brief Working area for memory consuming operations during init
+ * procedures (temporal storage for EXT_CSD, etc.).
+ * @note Buffer must be word aligned and big enough to store 512 bytes.
+ * @note It is mandatory for MMC bigger than 2GB.
+ * @note Memory can be freed after @p sdcConnect function call. Do not
+ * forge to set this pointer to @p NULL after freeing.
+ */
+ uint8_t *scratchpad;
} SDCConfig;
/**