aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
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;
/**